mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 912855 - Can't remove check-mark on "Load this bookmark in the sidebar". r=mak
This commit is contained in:
parent
be6e11caa4
commit
2edf767025
@ -557,10 +557,7 @@ var BookmarkPropertiesPanel = {
|
|||||||
|
|
||||||
if (this._loadInSidebar) {
|
if (this._loadInSidebar) {
|
||||||
let annoObj = { name : PlacesUIUtils.LOAD_IN_SIDEBAR_ANNO,
|
let annoObj = { name : PlacesUIUtils.LOAD_IN_SIDEBAR_ANNO,
|
||||||
type : Ci.nsIAnnotationService.TYPE_INT32,
|
value : true };
|
||||||
flags : 0,
|
|
||||||
value : this._loadInSidebar,
|
|
||||||
expires: Ci.nsIAnnotationService.EXPIRE_NEVER };
|
|
||||||
let setLoadTxn = new PlacesSetItemAnnotationTransaction(-1, annoObj);
|
let setLoadTxn = new PlacesSetItemAnnotationTransaction(-1, annoObj);
|
||||||
childTransactions.push(setLoadTxn);
|
childTransactions.push(setLoadTxn);
|
||||||
}
|
}
|
||||||
|
@ -589,14 +589,10 @@ var gEditItemOverlay = {
|
|||||||
|
|
||||||
onLoadInSidebarCheckboxCommand:
|
onLoadInSidebarCheckboxCommand:
|
||||||
function EIO_onLoadInSidebarCheckboxCommand() {
|
function EIO_onLoadInSidebarCheckboxCommand() {
|
||||||
var loadInSidebarChecked = this._element("loadInSidebarCheckbox").checked;
|
let annoObj = { name : PlacesUIUtils.LOAD_IN_SIDEBAR_ANNO };
|
||||||
var annoObj = { name : PlacesUIUtils.LOAD_IN_SIDEBAR_ANNO,
|
if (this._element("loadInSidebarCheckbox").checked)
|
||||||
type : Ci.nsIAnnotationService.TYPE_INT32,
|
annoObj.value = true;
|
||||||
flags : 0,
|
let txn = new PlacesSetItemAnnotationTransaction(this._itemId, annoObj);
|
||||||
value : loadInSidebarChecked,
|
|
||||||
expires: Ci.nsIAnnotationService.EXPIRE_NEVER };
|
|
||||||
var txn = new PlacesSetItemAnnotationTransaction(this._itemId,
|
|
||||||
annoObj);
|
|
||||||
PlacesUtils.transactionManager.doTransaction(txn);
|
PlacesUtils.transactionManager.doTransaction(txn);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user