diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index 30923e5f3..c03a3f797 100644 --- a/chrome/content/zotero/bindings/tagselector.xml +++ b/chrome/content/zotero/bindings/tagselector.xml @@ -224,6 +224,7 @@ tagsToggleBox.removeChild(tagsToggleBox.firstChild); } + var me = this; var i=0; for (var tagID in this._tags) { // If the last tag was the same, add this tagID and tagType to it @@ -236,8 +237,8 @@ continue; } - var label = document.createElement('label'); - label.setAttribute('onclick', "document.getBindingParent(this).handleTagClick(event, this)"); + let label = document.createElement('label'); + label.addEventListener('click', function(event) { me.handleTagClick(event, label) }, false); label.className = 'zotero-clicky'; @@ -455,7 +456,8 @@ var mod = 'plural'; } - this.id('num-selected').value = Zotero.getString('pane.tagSelector.numSelected.' + mod, [count]); + this.id('num-selected').label = Zotero.getString('pane.tagSelector.numSelected.' + mod, [count]); + this.id('deselect-all').disabled = count == 0; ]]> @@ -867,23 +869,6 @@ - - - - - - - - - + + + + - - - - - - - - - - - - diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd index 2afcd124c..14f019515 100644 --- a/chrome/locale/en-US/zotero/zotero.dtd +++ b/chrome/locale/en-US/zotero/zotero.dtd @@ -112,7 +112,7 @@ - +