Add file type in the pad attributes for existing files

This commit is contained in:
yflory 2017-10-12 17:43:49 +02:00
parent b86f8e3f26
commit 1c8e1a36e8
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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) {