mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Magnifier: Partial cleanup.
This commit is contained in:
parent
e96c202a35
commit
c2ce22addf
@ -79,21 +79,20 @@ $.widget("ui.magnifier", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
reset: function(e) {
|
reset: function(e) {
|
||||||
var o = this.options, c;
|
var o = this.options;
|
||||||
|
|
||||||
for (var i=0; i < this.items.length; i++) {
|
$.each(this.items, function() {
|
||||||
c = this.items[i];
|
var item = this;
|
||||||
|
$(item[0]).css({
|
||||||
$(c[0]).css({
|
width: item[2][0],
|
||||||
width: c[2][0],
|
height: item[2][1],
|
||||||
height: c[2][1],
|
top: (item[3] ? item[3].top : 0),
|
||||||
top: (c[3] ? c[3].top : 0),
|
left: (item[3] ? item[3].left : 0)
|
||||||
left: (c[3] ? c[3].left : 0)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
(o.opacity && $(c[0]).css('opacity', o.opacity.min));
|
(o.opacity && $(item[0]).css('opacity', o.opacity.min));
|
||||||
(o.zIndex && $(c[0]).css("z-index", ""));
|
(o.zIndex && $(item[0]).css("z-index", ""));
|
||||||
}
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
magnify: function(e) {
|
magnify: function(e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user