aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/lib/ui/effects.explode.js
diff options
context:
space:
mode:
Diffstat (limited to 'template-common/lib/ui/effects.explode.js')
-rw-r--r--template-common/lib/ui/effects.explode.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/template-common/lib/ui/effects.explode.js b/template-common/lib/ui/effects.explode.js
index b6d9ae48a..31efd2f54 100644
--- a/template-common/lib/ui/effects.explode.js
+++ b/template-common/lib/ui/effects.explode.js
@@ -1,10 +1,10 @@
/*
- * jQuery UI Effects Explode
+ * jQuery UI Effects Explode 1.7.2
*
- * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
- *
+ *
* http://docs.jquery.com/UI/Effects/Explode
*
* Depends:
@@ -18,15 +18,15 @@ $.effects.explode = function(o) {
var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
-
+
o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode;
var el = $(this).show().css('visibility', 'hidden');
var offset = el.offset();
-
+
//Substract the margins - not fixing the problem yet.
- offset.top -= parseInt(el.css("marginTop")) || 0;
- offset.left -= parseInt(el.css("marginLeft")) || 0;
-
+ offset.top -= parseInt(el.css("marginTop"),10) || 0;
+ offset.left -= parseInt(el.css("marginLeft"),10) || 0;
+
var width = el.outerWidth(true);
var height = el.outerHeight(true);
@@ -43,7 +43,7 @@ $.effects.explode = function(o) {
top: -i*(height/rows)
})
.parent()
- .addClass('effects-explode')
+ .addClass('ui-effects-explode')
.css({
position: 'absolute',
overflow: 'hidden',
@@ -62,18 +62,18 @@ $.effects.explode = function(o) {
// Set a timeout, to call the callback approx. when the other animations have finished
setTimeout(function() {
-
+
o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide();
if(o.callback) o.callback.apply(el[0]); // Callback
el.dequeue();
-
- $('.effects-explode').remove();
-
+
+ $('div.ui-effects-explode').remove();
+
}, o.duration || 500);
-
-
+
+
});
-
+
};
})(jQuery);