diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index d8463112b..fd51b23e8 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -18,7 +18,6 @@ define([ '/common/outer/worker-channel.js', '/bower_components/file-saver/FileSaver.min.js', - '/common/sframe-common-file.js', 'css!/bower_components/bootstrap/dist/css/bootstrap.min.css', 'less!/bower_components/components-font-awesome/css/font-awesome.min.css', @@ -40,8 +39,7 @@ define([ EmptyCell, EmptyDoc, EmptySlide, - Channel, - SFCFile) + Channel) { var saveAs = window.saveAs; var Nacl = window.nacl; @@ -56,7 +54,7 @@ define([ var debug = function (x) { if (!window.CP_DEV_MODE) { return; } - console.log(x); + console.debug(x); }; var stringify = function (obj) { @@ -89,11 +87,8 @@ define([ var mediasData = {}; var getMediasSources = APP.getMediasSources = function() { - if (!content.mediasSources) { - content.mediasSources = {} - } - return content.mediasSources; - } + return content.mediasSources = content.mediaSources || {}; + }; var getId = function () { return metadataMgr.getNetfluxId() + '-' + privateData.clientId; @@ -242,8 +237,7 @@ define([ var editor = window.frames[0].editor; // if we are not in the sheet app // we should not call this code - if (typeof editor.GetSheets === 'undefined') - return; + if (typeof editor.GetSheets === 'undefined') { return; } var s = editor.GetSheets(); if (s.length === 0) { return; } var wb = s[0].worksheet.workbook; @@ -717,6 +711,7 @@ define([ '#panel-settings-general tr.autosave { display: none !important; }' + '#panel-settings-general tr.coauth { display: none !important; }' + '#header { display: none !important; }'; + // #asc-gen566 // XXX // + '#id-toolbar-full-placeholder-btn-insertimage { display: none; }' + // '#id-toolbar-full-placeholder-btn-insertequation { display: none; }'; $('