[DE mobile] Replace ‘Line Break’ on ‘Column Break’

This commit is contained in:
Alexander Yuzhin 2016-12-05 14:12:35 +03:00
parent f12413af21
commit ef694c4cc5
5 changed files with 21 additions and 18 deletions

View file

@ -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() {

View file

@ -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();
},

View file

@ -14,6 +14,18 @@
</div>
</a>
</li>
<li>
<a id="add-other-columnbreak" class="item-link no-indicator">
<div class="item-content">
<div class="item-media">
<i class="icon icon-stringbreak"></i>
</div>
<div class="item-inner">
<div class="item-title"><%= scope.textColumnBreak %></div>
</div>
</div>
</a>
</li>
<li>
<a id="add-other-section" class="item-link">
<div class="item-content">
@ -26,18 +38,6 @@
</div>
</a>
</li>
<li>
<a id="add-other-linebreak" class="item-link no-indicator">
<div class="item-content">
<div class="item-media">
<i class="icon icon-stringbreak"></i>
</div>
<div class="item-inner">
<div class="item-title"><%= scope.textLineBreak %></div>
</div>
</div>
</a>
</li>
<li>
<a id="add-other-link" class="item-link">
<div class="item-content">

View file

@ -139,7 +139,7 @@ define([
textPageBreak: 'Page Break',
textSectionBreak: 'Section Break',
textLineBreak: 'Line Break',
textColumnBreak: 'Column Break',
textLink: 'Link',
textPageNumber: 'Page Number',
textBack: 'Back',

View file

@ -159,7 +159,7 @@
"DE.Controllers.AddOther.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'",
"DE.Views.AddOther.textPageBreak": "Page Break",
"DE.Views.AddOther.textSectionBreak": "Section Break",
"DE.Views.AddOther.textLineBreak": "Line Break",
"DE.Views.AddOther.textColumnBreak": "Column Break",
"DE.Views.AddOther.textLink": "Link",
"DE.Views.AddOther.textPageNumber": "Page Number",
"DE.Views.AddOther.textBack": "Back",