[DE] refactored StatusBar

This commit is contained in:
Maxim Kadushkin 2017-03-29 14:03:12 +03:00
parent 9497f2da29
commit 1d96a22688
2 changed files with 4 additions and 3 deletions

View file

@ -1,9 +1,9 @@
<div class="statusbar" style="display:table;"> <div class="statusbar" style="display:table;">
<div class="status-group dropup"> <div class="status-group dropup">
<label id="label-pages" class="status-label dropdown-toggle" style="margin-left: 40px;" data-toggle="dropdown"><%= Common.Utils.String.format(scope.pageIndexText, 1, 1) %></label> <label id="label-pages" class="status-label dropdown-toggle" style="margin-left: 40px;" data-toggle="dropdown"><%= textPageNumber %></label>
<div id="status-goto-box" class="dropdown-menu"> <div id="status-goto-box" class="dropdown-menu">
<label style="float:left;line-height:22px;"><%= scope.goToPageText %></label> <label style="float:left;line-height:22px;"><%= textGotoPage %></label>
<div id="status-goto-page" style="display:inline-block;"></div> <div id="status-goto-page" style="display:inline-block;"></div>
</div> </div>
</div> </div>

View file

@ -102,7 +102,8 @@ define([
render: function () { render: function () {
var me = this; var me = this;
this.$el.html(this.template({ this.$el.html(this.template({
scope: this textGotoPage: this.goToPageText,
textPageNumber: Common.Utils.String.format(this.pageIndexText, 1, 1)
})); }));
this.btnZoomToPage = new Common.UI.Button({ this.btnZoomToPage = new Common.UI.Button({