bug 3271 : Added tooltip when adding to a list with no item selected (same as for cart)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
b5c8b19e2a
commit
84e6a5decd
|
|
@ -1282,7 +1282,7 @@ div#changelanguage li.yuimenuitem a.yuimenuitemlabel {
|
|||
padding : 0;
|
||||
}
|
||||
|
||||
#cartDetails,#cartUpdate {
|
||||
#cartDetails,#cartUpdate,#holdDetails,#listsDetails {
|
||||
background-color : #FFF;
|
||||
border: 1px solid #739acf;
|
||||
color : black;
|
||||
|
|
@ -1818,4 +1818,12 @@ a.p1:active {
|
|||
color : #AAA;
|
||||
text-decoration : none;
|
||||
font-weight : bold;
|
||||
}
|
||||
<<<<<<< HEAD:koha-tmpl/opac-tmpl/prog/en/css/opac.css
|
||||
}
|
||||
=======
|
||||
}
|
||||
|
||||
.copies_row > td:first-child {
|
||||
border-left-style : none;
|
||||
}
|
||||
>>>>>>> f2dfe5b... bug 3271 : Added tooltip when adding to a list with no item selected (same as for cart):koha-tmpl/opac-tmpl/prog/en/css/opac.css
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@
|
|||
</div>
|
||||
</div><!-- /listmenu /virtualshelves -->
|
||||
<!-- /TMPL_IF -->
|
||||
<div id="listsDetails"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="breadcrumbs" class="yui-g">
|
||||
|
|
|
|||
|
|
@ -210,6 +210,13 @@ function showCartUpdate(msg){
|
|||
setTimeout("hideCart()",2000);
|
||||
}
|
||||
|
||||
function showListsUpdate(msg){
|
||||
// set body of popup window
|
||||
$("#listsDetails").html(msg);
|
||||
showLists();
|
||||
setTimeout("hideLists()",2000);
|
||||
}
|
||||
|
||||
function selRecord(num, status) {
|
||||
var str = document.myform.records.value
|
||||
if (status){
|
||||
|
|
@ -400,6 +407,7 @@ function vShelfAdd() {
|
|||
bibs.push("biblionumber=" + document.bookbag_form.biblionumber[i].value);
|
||||
}
|
||||
}
|
||||
if (bibs.length == 0) { showListsUpdate(MSG_NO_RECORD_SELECTED); }
|
||||
return bibs.join("&");
|
||||
} else {
|
||||
if (document.bookbag_form.biblionumber.checked) {
|
||||
|
|
@ -422,11 +430,30 @@ function showCart(){
|
|||
});
|
||||
}
|
||||
|
||||
function showLists(){
|
||||
var position = $("#listsmenulink").offset();
|
||||
var top = position.top + $("#listsmenulink").outerHeight();
|
||||
var menuWidth = 200;
|
||||
var buttonWidth = $("#listsmenulink").innerWidth();
|
||||
var buttonOffset = menuWidth - buttonWidth;
|
||||
var left = position.left - buttonOffset;
|
||||
$("#listsDetails").css("position","absolute").css("top",top);
|
||||
$("#listsDetails").css("position","absolute").css("left",left);
|
||||
$("#listsDetails").fadeIn("fast",function(){
|
||||
$("#listsDetails").dropShadow({left: 3, top: 3, blur: 0, color: "#000", opacity: 0.1});
|
||||
});
|
||||
}
|
||||
|
||||
function hideCart(){
|
||||
$("#cartDetails").removeShadow();
|
||||
$("#cartDetails").fadeOut("fast");
|
||||
}
|
||||
|
||||
function hideLists(){
|
||||
$("#listsDetails").removeShadow();
|
||||
$("#listsDetails").fadeOut("fast");
|
||||
}
|
||||
|
||||
$("#cartDetails").ready(function(){
|
||||
$("#cartDetails,#cartmenulink").click(function(){ hideCart(); });
|
||||
$("#cartmenulink").click(function(){ openBasket(); return false; });
|
||||
|
|
|
|||
Loading…
Reference in New Issue