Fix buttons so that they work on FF3.0

This commit is contained in:
Simon Kornblith 2009-09-08 20:53:03 +00:00
parent 7d4432cc8a
commit 24ea6dbb5c
3 changed files with 16 additions and 8 deletions

View file

@ -809,7 +809,7 @@
// Switch to single-field mode
if (fieldMode == 1) {
button.style.MozBorderImage = 'url("chrome://zotero/skin/textfield-dual.png") 0 0 0 0 stretch';
button.style.backgroundImage = 'url("chrome://zotero/skin/textfield-dual.png")';
button.setAttribute('tooltiptext', Zotero.getString('pane.item.switchFieldMode.two'));
lastName.setAttribute('fieldMode', '1');
button.setAttribute('onclick', "document.getBindingParent(this).switchCreatorMode(Zotero.getAncestorByTagName(this, 'row'), 0)");
@ -840,7 +840,7 @@
}
// Switch to two-field mode
else {
button.style.MozBorderImage = 'url("chrome://zotero/skin/textfield-single.png") 0 0 0 0 stretch';
button.style.backgroundImage = 'url("chrome://zotero/skin/textfield-single.png")';
button.setAttribute('tooltiptext', Zotero.getString('pane.item.switchFieldMode.one'));
lastName.setAttribute('fieldMode', '0');
button.setAttribute('onclick', "document.getBindingParent(this).switchCreatorMode(Zotero.getAncestorByTagName(this, 'row'), 1)");

View file

@ -152,5 +152,8 @@ hbox.zotero-date-field-status label
height: 14px;
padding: 0 !important;
margin: 0 5px 0 0 !important;
border-width: 3px !important;
background-repeat: no-repeat !important;
background-position: center !important;
border-width: 0 !important;
-moz-border-radius: 4px !important;
}

View file

@ -159,24 +159,29 @@ zoteromergepane {
}
.zotero-clicky[value="-"] {
-moz-border-image: url('chrome://zotero/skin/minus.png') 0 0 0 0 stretch;
background-image: url('chrome://zotero/skin/minus.png') !important;
background-position: center !important;
background-repeat: no-repeat !important;
border: 0px !important;
}
.zotero-clicky[value="+"] {
-moz-border-image: url('chrome://zotero/skin/plus.png') 0 0 0 0 stretch;
background-image: url('chrome://zotero/skin/plus.png') !important;
background-position: center !important;
background-repeat: no-repeat !important;
border: 0px !important;
}
.zotero-clicky[value="+"][disabled=true] {
-moz-border-image: url('chrome://zotero/skin/plus.png') 0 0 0 0 stretch;
opacity: .5;
}
.zotero-clicky[value="+"]:not([disabled=true]):active {
-moz-border-image: url('chrome://zotero/skin/plus-active.png') 0 0 0 0 stretch;
background-image: url('chrome://zotero/skin/plus-active.png') !important;
}
.zotero-clicky[value="-"]:not([disabled=true]):active {
-moz-border-image: url('chrome://zotero/skin/minus-active.png') 0 0 0 0 stretch;
background-image: url('chrome://zotero/skin/minus-active.png') !important;
}
.zotero-clicky:not([disabled=true]):hover,