diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 846cfe85f..c427f4b93 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -42,9 +42,12 @@ define([ 'core', + 'jquery', + 'underscore', + 'backbone', 'irregularstack', 'common/main/lib/util/LocalStorage' -], function () { +], function (core, $, _, Backbone) { 'use strict'; DE.Controllers.Main = Backbone.Controller.extend(_.extend((function() { diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index fde359802..29b0f526d 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -86,7 +86,7 @@ define([ initEvents: function () { var me = this; $('#add-other-pagebreak').single('click', _.bind(me.onPageBreak, me)); - $('#add-other-linebreak').single('click', _.bind(me.onLineBreak, me)); + $('#add-other-columnbreak').single('click', _.bind(me.onColumnBreak, me)); }, onPageShow: function (view, pageId) { @@ -144,8 +144,8 @@ define([ DE.getController('AddContainer').hideModal(); }, - onLineBreak: function (e) { - this.api && this.api.put_AddLineBreak(); + onColumnBreak: function () { + this.api && this.api.put_AddColumnBreak(); DE.getController('AddContainer').hideModal(); }, diff --git a/apps/documenteditor/mobile/app/template/AddOther.template b/apps/documenteditor/mobile/app/template/AddOther.template index 8b61a6652..36c324b5c 100644 --- a/apps/documenteditor/mobile/app/template/AddOther.template +++ b/apps/documenteditor/mobile/app/template/AddOther.template @@ -14,6 +14,18 @@ +