Jump to content

Home page 'My Files' missing disk space indicators since 8.5


Recommended Posts

Posted

Hi Nick,

 

How's things? Thanks for the 8.5 release.

 

It seems that on 8.5 the 'My Files' tile on the user's home screen the disk space information is missing. Disk space etc still shows up in My Files itself, but the little bar graphs are missing from the home page tile.

 

Thanks

Moby.

Posted

Thanks for the spot, I must of missed creating one of the new live tile handlers

 

after ~/scripts/hap.web.js.js line 204 add

 

                hap.livetiles.RegisterTileHandler("myfiles", function (type, initdata, size) {
                   this.id = (initdata.Group + initdata.Name).replace(/[\s'\/\\\&\.\,\*]*/gi, "");
                   this.html = '' + initdata.Name + '';
                   $("#" + initdata.Group).append(this.html);
                   $.ajax({
                       url: hap.common.formatJSONUrl("~/api/myfiles/drives"), type: 'GET', context: this.id, dataType: "json", contentType: 'application/JSON', success: function (data) {
                           var s = "";
                           for (var i = 0; i < (data.length > 3 ? 3 : data.length) ; i++)
                               s += "" + data[i].Name + "" + (data[i].Space == -1 ? "

" : '
' + data[i].Space + '%');
                           $("#" + this + " span label").html(s);
                           setInterval("$('#" + this + " > span > i').animate({ height: 'toggle' });", 6000);
                       }, error: hap.common.jsonError
                   });
               });

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...