aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/lib/ui/effects.explode.js
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-02-20 19:56:36 +0000
committernikrou <nikrou@piwigo.org>2010-02-20 19:56:36 +0000
commit6acc3ff7909dd7f070973c112ebd9291862982f8 (patch)
tree20a0875d668206917f88b73983d7021038b43170 /template-common/lib/ui/effects.explode.js
parent0c4bdbe01325869a62380c1d2804c34e8a31c1dd (diff)
Feature 1442 : update jquery
* update jquery to 1.4.1 * update jquery ui to 1.7.2 git-svn-id: http://piwigo.org/svn/trunk@4918 68402e56-0260-453c-a942-63ccdbb3a9ee
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);