Upgrade jquery dimensions plugin. Correction to Cart js to match.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
d4ed156eb4
commit
7dd4724670
2 changed files with 17 additions and 3 deletions
|
@ -409,9 +409,12 @@ function vShelfAdd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function showCart(){
|
function showCart(){
|
||||||
var position = $("#cartmenulink").offset({border: true,margin:false});
|
var position = $("#cartmenulink").offset();
|
||||||
var top = position.top + $("#cartmenulink").outerHeight();
|
var top = position.top + $("#cartmenulink").outerHeight();
|
||||||
var left = position.left - 105;
|
var menuWidth = 200;
|
||||||
|
var buttonWidth = $("#cartmenulink").innerWidth();
|
||||||
|
var buttonOffset = menuWidth - buttonWidth;
|
||||||
|
var left = position.left - buttonOffset;
|
||||||
$("#cartDetails").css("position","absolute").css("top",top);
|
$("#cartDetails").css("position","absolute").css("top",top);
|
||||||
$("#cartDetails").css("position","absolute").css("left",left);
|
$("#cartDetails").css("position","absolute").css("left",left);
|
||||||
$("#cartDetails").fadeIn("fast",function(){
|
$("#cartDetails").fadeIn("fast",function(){
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue