Commit ef694c4c authored by Alexander Yuzhin's avatar Alexander Yuzhin

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

parent f12413af
......@@ -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() {
......
......@@ -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();
},
......
......@@ -15,25 +15,25 @@
</a>
</li>
<li>
<a id="add-other-section" class="item-link">
<a id="add-other-columnbreak" class="item-link no-indicator">
<div class="item-content">
<div class="item-media">
<i class="icon icon-sectionbreak"></i>
<i class="icon icon-stringbreak"></i>
</div>
<div class="item-inner">
<div class="item-title"><%= scope.textSectionBreak %></div>
<div class="item-title"><%= scope.textColumnBreak %></div>
</div>
</div>
</a>
</li>
<li>
<a id="add-other-linebreak" class="item-link no-indicator">
<a id="add-other-section" class="item-link">
<div class="item-content">
<div class="item-media">
<i class="icon icon-stringbreak"></i>
<i class="icon icon-sectionbreak"></i>
</div>
<div class="item-inner">
<div class="item-title"><%= scope.textLineBreak %></div>
<div class="item-title"><%= scope.textSectionBreak %></div>
</div>
</div>
</a>
......
......@@ -139,7 +139,7 @@ define([
textPageBreak: 'Page Break',
textSectionBreak: 'Section Break',
textLineBreak: 'Line Break',
textColumnBreak: 'Column Break',
textLink: 'Link',
textPageNumber: 'Page Number',
textBack: 'Back',
......
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment