mirror of https://github.com/xwiki-labs/cryptpad
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) {
|
||||
cb = cb || $.noop;
|
||||
ctx.sframeChan.query('Q_SET_PAD_ATTRIBUTE', {
|
||||
key: key,
|
||||
value: value
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue