Fix logged error clicking below list in "Choose Libraries…" window
This commit is contained in:
parent
33bf3b2e12
commit
6150a08dc1
|
@ -225,7 +225,8 @@ Zotero_Preferences.Sync = {
|
||||||
var row = {}, col = {}, child = {};
|
var row = {}, col = {}, child = {};
|
||||||
tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child);
|
tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child);
|
||||||
|
|
||||||
if (col.value.element.id == 'libraries-to-sync-checked') {
|
// Below the list or on checkmark column
|
||||||
|
if (!col.value || col.value.element.id == 'libraries-to-sync-checked') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if dblclicked anywhere but the checkbox update pref
|
// if dblclicked anywhere but the checkbox update pref
|
||||||
|
@ -238,7 +239,8 @@ Zotero_Preferences.Sync = {
|
||||||
var row = {}, col = {}, child = {};
|
var row = {}, col = {}, child = {};
|
||||||
tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child);
|
tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child);
|
||||||
|
|
||||||
if (col.value.element.id != 'libraries-to-sync-checked') {
|
// Below the list or not on checkmark column
|
||||||
|
if (!col.value || col.value.element.id != 'libraries-to-sync-checked') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if clicked on checkbox update pref
|
// if clicked on checkbox update pref
|
||||||
|
|
Loading…
Reference in New Issue
Block a user