diff --git a/apps/spreadsheeteditor/mobile/app-dev.js b/apps/spreadsheeteditor/mobile/app-dev.js
index 99bf35d3a..467728d01 100644
--- a/apps/spreadsheeteditor/mobile/app-dev.js
+++ b/apps/spreadsheeteditor/mobile/app-dev.js
@@ -121,7 +121,7 @@ require([
'DocumentHolder'
, 'CellEditor'
, 'Statusbar'
- // ,'Settings'
+ ,'Settings'
// ,'EditContainer'
// ,'EditText'
// ,'EditParagraph'
@@ -191,7 +191,7 @@ require([
'spreadsheeteditor/mobile/app/controller/DocumentHolder'
, 'spreadsheeteditor/mobile/app/controller/CellEditor'
, 'spreadsheeteditor/mobile/app/controller/Statusbar'
- // ,'documenteditor/mobile/app/controller/Settings'
+ , 'spreadsheeteditor/mobile/app/controller/Settings'
// ,'documenteditor/mobile/app/controller/edit/EditContainer'
// ,'documenteditor/mobile/app/controller/edit/EditText'
// ,'documenteditor/mobile/app/controller/edit/EditParagraph'
diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js
index 3d4baa225..98dac8334 100644
--- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js
+++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js
@@ -35,7 +35,7 @@
* Settings.js
* Document Editor
*
- * Created by Alexander Yuzhin on 10/7/16
+ * Created by Maxim Kadushkin on 12/05/2016
* Copyright (c) 2016 Ascensio System SIA. All rights reserved.
*
*/
@@ -43,11 +43,11 @@
define([
'core',
- 'documenteditor/mobile/app/view/Settings'
+ 'spreadsheeteditor/mobile/app/view/Settings'
], function (core) {
'use strict';
- DE.Controllers.Settings = Backbone.Controller.extend((function() {
+ SSE.Controllers.Settings = Backbone.Controller.extend((function() {
// private
var rootView,
inProgress,
@@ -62,26 +62,23 @@ define([
],
initialize: function () {
- Common.SharedSettings.set('readerMode', false);
Common.NotificationCenter.on('settingscontainer:show', _.bind(this.initEvents, this));
this.addListeners({
'Settings': {
'page:show' : this.onPageShow
+ , 'settings:showhelp': function(e) {
+ window.open('http://support.onlyoffice.com/', "_blank");
+ this.hideModal();
+ }
}
});
},
- setApi: function (api) {
- var me = this;
- me.api = api;
-
- me.api.asc_registerCallback('asc_onGetDocInfoStart', _.bind(me._onApiGetDocInfoStart, me));
- me.api.asc_registerCallback('asc_onGetDocInfoStop', _.bind(me._onApiGetDocInfoEnd, me));
- me.api.asc_registerCallback('asc_onDocInfo', _.bind(me._onApiDocInfo, me));
- me.api.asc_registerCallback('asc_onGetDocInfoEnd', _.bind(me._onApiGetDocInfoEnd, me));
- me.api.asc_registerCallback('asc_onDocumentName', _.bind(me._onApiDocumentName, me));
- },
+ // setApi: function (api) {
+ // var me = this;
+ // me.api = api;
+ // },
onLaunch: function () {
this.createView('Settings').render();
@@ -92,12 +89,6 @@ define([
},
initEvents: function () {
-
-
- // $('#font-bold').single('click', _.bind(me.onBold, me));
- // $('#font-italic').single('click', _.bind(me.onItalic, me));
- // $('#font-underline').single('click', _.bind(me.onUnderline, me));
- // $('#font-strikethrough').single('click', _.bind(me.onStrikethrough, me));
},
rootView : function() {
@@ -107,7 +98,7 @@ define([
showModal: function() {
if (Common.SharedSettings.get('phone')) {
modalView = uiApp.popup(
- '