Allowing delete-biblio menu item to trigger javascript warning. Style now mimicsa disabled menu item. Addresses Bug 2135, "Cannot Delete MARC Records."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2008-05-20 07:50:22 -05:00 committed by Joshua Ferraro
parent 2ee27fb1cc
commit 709619013d
2 changed files with 10 additions and 3 deletions

View file

@ -392,6 +392,13 @@ ul.toolbar {
} }
a.yuimenuitemlabel-disabled, #disabled a {
color: #999;
}
a.yuimenuitemlabel-disabled:hover, #disabled a:hover {
color : #999;
}
ul.toolbar li { ul.toolbar li {
display : inline; display : inline;
list-style : none; list-style : none;
@ -1064,7 +1071,8 @@ div.alert strong {
div.message { div.message {
background : white url("../../img/message-bg.gif") repeat-x left 0; background : white url("../../img/message-bg.gif") repeat-x left 0;
border : 1px solid #bcbcbc; border : 1px solid #bcbcbc;
text-align: center;
width : 55%; width : 55%;
} }

View file

@ -8,7 +8,6 @@
function printBiblio() {window.open('/cgi-bin/koha/catalogue/detailprint.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->','Print_Biblio','width=700,height=500,toolbar=false,scrollbars=yes'); function printBiblio() {window.open('/cgi-bin/koha/catalogue/detailprint.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->','Print_Biblio','width=700,height=500,toolbar=false,scrollbars=yes');
} }
function confirm_deletion() { function confirm_deletion() {
var count = <!-- TMPL_VAR NAME="count" -->; var count = <!-- TMPL_VAR NAME="count" -->;
var is_confirmed; var is_confirmed;
if (count>0){ if (count>0){
@ -49,7 +48,7 @@ function confirm_deletion() {
{ text: _("Edit Record"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;frameworkcode=&amp;op=" }, { text: _("Edit Record"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;frameworkcode=&amp;op=" },
{ text: _("Edit Items"), url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" }, { text: _("Edit Items"), url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" },
{ text: _("Edit as New (Duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;frameworkcode=&amp;op=duplicate" }, { text: _("Edit as New (Duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;frameworkcode=&amp;op=duplicate" },
{ text: _("Delete Record"), <!-- TMPL_IF NAME="count" -->disabled: true, <!-- /TMPL_IF --> onclick: {fn: confirm_deletion }} { text: _("Delete Record"), onclick: {fn: confirm_deletion }<!-- TMPL_IF NAME="count" -->,id:'disabled'<!-- /TMPL_IF --> }
]; ];
var savemenu = [ var savemenu = [