From 1c8e1a36e8e6859057e3c72529bf3cf6195cd93a Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 12 Oct 2017 17:43:49 +0200 Subject: [PATCH] Add file type in the pad attributes for existing files --- www/common/sframe-common.js | 1 + www/file/inner.js | 2 ++ 2 files changed, 3 insertions(+) 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) {