Commit e2058ff6 authored by Alexander Yuzhin's avatar Alexander Yuzhin

[DE mobile] Localization Toolbar.

parent 90da47ad
...@@ -49,7 +49,7 @@ define([ ...@@ -49,7 +49,7 @@ define([
], function (core, $, _, Backbone) { ], function (core, $, _, Backbone) {
'use strict'; 'use strict';
DE.Controllers.Toolbar = Backbone.Controller.extend((function() { DE.Controllers.Toolbar = Backbone.Controller.extend(_.extend((function() {
// private // private
var _backUrl; var _backUrl;
...@@ -149,5 +149,5 @@ define([ ...@@ -149,5 +149,5 @@ define([
leaveButtonText : 'Leave this Page', leaveButtonText : 'Leave this Page',
stayButtonText : 'Stay on this Page' stayButtonText : 'Stay on this Page'
} }
})()); })(), DE.Controllers.Toolbar || {}))
}); });
\ No newline at end of file
...@@ -48,7 +48,7 @@ define([ ...@@ -48,7 +48,7 @@ define([
], function (toolbarTemplate, $, _, Backbone) { ], function (toolbarTemplate, $, _, Backbone) {
'use strict'; 'use strict';
DE.Views.Toolbar = Backbone.View.extend((function() { DE.Views.Toolbar = Backbone.View.extend(_.extend((function() {
// private // private
return { return {
...@@ -86,7 +86,8 @@ define([ ...@@ -86,7 +86,8 @@ define([
$el.prepend(this.template({ $el.prepend(this.template({
android : Common.SharedSettings.get('android'), android : Common.SharedSettings.get('android'),
phone : Common.SharedSettings.get('phone'), phone : Common.SharedSettings.get('phone'),
backTitle : Common.SharedSettings.get('android') ? '' : 'Back' backTitle : Common.SharedSettings.get('android') ? '' : this.textBack,
scope : this
})); }));
return this; return this;
...@@ -131,7 +132,9 @@ define([ ...@@ -131,7 +132,9 @@ define([
// Settings // Settings
showSettings: function () { showSettings: function () {
DE.getController('Settings').showModal(); DE.getController('Settings').showModal();
},
textBack: 'Back'
} }
} })(), DE.Views.Toolbar || {}))
})());
}); });
\ No newline at end of file
...@@ -129,5 +129,11 @@ ...@@ -129,5 +129,11 @@
"DE.Views.Settings.textVersion": "Version", "DE.Views.Settings.textVersion": "Version",
"DE.Views.Settings.textAddress": "address", "DE.Views.Settings.textAddress": "address",
"DE.Views.Settings.textEmail": "email", "DE.Views.Settings.textEmail": "email",
"DE.Views.Settings.textTel": "tel" "DE.Views.Settings.textTel": "tel",
"DE.Controllers.Toolbar.dlgLeaveTitleText": "You leave the application",
"DE.Controllers.Toolbar.dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to await the autosave of the document. Click 'Leave this Page' to discard all the unsaved changes.",
"DE.Controllers.Toolbar.leaveButtonText": "Leave this Page",
"DE.Controllers.Toolbar.stayButtonText": "Stay on this Page",
"DE.Views.Toolbar.textBack": "Back"
} }
\ No newline at end of file
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