|
@@ -354,6 +354,7 @@ var SettingsTab = BaseView.extend({
|
|
|
var options = _.options.getAll();
|
|
var options = _.options.getAll();
|
|
|
this.$el.html(this.templateFn(options));
|
|
this.$el.html(this.templateFn(options));
|
|
|
this.$('#sInjectMode').val(options.injectMode);
|
|
this.$('#sInjectMode').val(options.injectMode);
|
|
|
|
|
+ this.updateInjectHint();
|
|
|
this.exportList = new ExportList;
|
|
this.exportList = new ExportList;
|
|
|
return this;
|
|
return this;
|
|
|
},
|
|
},
|
|
@@ -361,8 +362,15 @@ var SettingsTab = BaseView.extend({
|
|
|
updateAutoUpdate: function (e) {
|
|
updateAutoUpdate: function (e) {
|
|
|
_.sendMessage({cmd: 'AutoUpdate'});
|
|
_.sendMessage({cmd: 'AutoUpdate'});
|
|
|
},
|
|
},
|
|
|
|
|
+ updateInjectHint: function () {
|
|
|
|
|
+ this.$('#sInjectMode+span').text([
|
|
|
|
|
+ _.i18n('hintInjectModeNormal'),
|
|
|
|
|
+ _.i18n('hintInjectModeAdvanced'),
|
|
|
|
|
+ ][this.$('#sInjectMode').val()]);
|
|
|
|
|
+ },
|
|
|
updateInjectMode: function (e) {
|
|
updateInjectMode: function (e) {
|
|
|
_.options.set('injectMode', e.target.value);
|
|
_.options.set('injectMode', e.target.value);
|
|
|
|
|
+ this.updateInjectHint();
|
|
|
},
|
|
},
|
|
|
toggleSelection: function () {
|
|
toggleSelection: function () {
|
|
|
this.exportList.toggleAll();
|
|
this.exportList.toggleAll();
|