[DE] Bookmarks: save option for hidden bookmarks
This commit is contained in:
parent
9f77f3d792
commit
843e3632b5
|
@ -176,7 +176,8 @@ define([
|
||||||
|
|
||||||
this.chHidden = new Common.UI.CheckBox({
|
this.chHidden = new Common.UI.CheckBox({
|
||||||
el: $('#bookmarks-checkbox-hidden'),
|
el: $('#bookmarks-checkbox-hidden'),
|
||||||
labelText: this.textHidden
|
labelText: this.textHidden,
|
||||||
|
value: Common.Utils.InternalSettings.get("de-bookmarks-hidden") || false
|
||||||
});
|
});
|
||||||
this.chHidden.on('change', _.bind(this.onChangeHidden, this));
|
this.chHidden.on('change', _.bind(this.onChangeHidden, this));
|
||||||
|
|
||||||
|
@ -191,6 +192,11 @@ define([
|
||||||
Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments);
|
Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
close: function() {
|
||||||
|
Common.Views.AdvancedSettingsWindow.prototype.close.apply(this, arguments);
|
||||||
|
Common.Utils.InternalSettings.set("de-bookmarks-hidden", this.chHidden.getValue()=='checked');
|
||||||
|
},
|
||||||
|
|
||||||
_setDefaults: function (props) {
|
_setDefaults: function (props) {
|
||||||
this.refreshBookmarks();
|
this.refreshBookmarks();
|
||||||
this.bookmarksList.scrollToRecord(this.bookmarksList.selectByIndex(0));
|
this.bookmarksList.scrollToRecord(this.bookmarksList.selectByIndex(0));
|
||||||
|
@ -204,7 +210,6 @@ define([
|
||||||
var state = (typeof(event) == 'object') ? event.currentTarget.attributes['result'].value : event;
|
var state = (typeof(event) == 'object') ? event.currentTarget.attributes['result'].value : event;
|
||||||
if (state == 'add') {
|
if (state == 'add') {
|
||||||
this.props.asc_AddBookmark(this.txtName.getValue());
|
this.props.asc_AddBookmark(this.txtName.getValue());
|
||||||
// this.handler && this.handler.call(this, state, (state == 'add') ? this.getSettings() : undefined);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.close();
|
this.close();
|
||||||
|
|
Loading…
Reference in a new issue