Add file type in the pad attributes for existing files
This commit is contained in:
parent
b86f8e3f26
commit
1c8e1a36e8
@ -190,6 +190,7 @@ define([
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
funcs.setPadAttribute = function (key, value, cb) {
|
funcs.setPadAttribute = function (key, value, cb) {
|
||||||
|
cb = cb || $.noop;
|
||||||
ctx.sframeChan.query('Q_SET_PAD_ATTRIBUTE', {
|
ctx.sframeChan.query('Q_SET_PAD_ATTRIBUTE', {
|
||||||
key: key,
|
key: key,
|
||||||
value: value
|
value: value
|
||||||
|
|||||||
@ -94,6 +94,8 @@ define([
|
|||||||
Title.updateTitle(title || Title.defaultTitle);
|
Title.updateTitle(title || Title.defaultTitle);
|
||||||
toolbar.addElement(['pageTitle'], {pageTitle: title});
|
toolbar.addElement(['pageTitle'], {pageTitle: title});
|
||||||
|
|
||||||
|
common.setPadAttribute('fileType', metadata.type);
|
||||||
|
|
||||||
var displayFile = function (ev, sizeMb, CB) {
|
var displayFile = function (ev, sizeMb, CB) {
|
||||||
var called_back;
|
var called_back;
|
||||||
var cb = function (e) {
|
var cb = function (e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user