Stop right-click on tag in tag selector on Windows and Linux from selecting tag

This commit is contained in:
Dan Stillman 2007-02-04 13:25:01 +00:00
parent 4caa096a46
commit 3858dfd88b

View File

@ -187,7 +187,7 @@
}
var label = document.createElement('label');
label.setAttribute('onclick', "this.parentNode.parentNode.parentNode.handleTagClick(this)");
label.setAttribute('onclick', "this.parentNode.parentNode.parentNode.handleTagClick(event, this)");
label.className = 'zotero-clicky';
label.setAttribute('value', this._tags[tagID].tag);
label.setAttribute('tagID', tagID);
@ -446,9 +446,14 @@
<method name="handleTagClick">
<parameter name="event"/>
<parameter name="label"/>
<body>
<![CDATA[
if (event.button != 0) {
return;
}
// Ignore clicks on tags not in scope
if (label.getAttribute('inScope') == 'false') {
return;