diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 35865cdd8..507c8d323 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -190,6 +190,7 @@ define([ }); }; funcs.setPadAttribute = function (key, value, cb) { + cb = cb || $.noop; ctx.sframeChan.query('Q_SET_PAD_ATTRIBUTE', { key: key, value: value diff --git a/www/file/inner.js b/www/file/inner.js index df5ba854f..b4860355c 100644 --- a/www/file/inner.js +++ b/www/file/inner.js @@ -94,6 +94,8 @@ define([ Title.updateTitle(title || Title.defaultTitle); toolbar.addElement(['pageTitle'], {pageTitle: title}); + common.setPadAttribute('fileType', metadata.type); + var displayFile = function (ev, sizeMb, CB) { var called_back; var cb = function (e) {