aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/effects.transfer.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-04 02:34:33 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-04 02:34:33 +0000
commit26c16a7e6fc66107819fd9900bc7e7daec561a7f (patch)
tree3856267f99dc2645ba9bfa897863239c95f8dfe9 /ui/source/effects.transfer.js
parent9caa12ad6521770dd5217dc1b1a77345a7c90418 (diff)
downloadjquery-ui-26c16a7e6fc66107819fd9900bc7e7daec561a7f.tar.gz
jquery-ui-26c16a7e6fc66107819fd9900bc7e7daec561a7f.zip
Set svn:eol-style to native
Diffstat (limited to 'ui/source/effects.transfer.js')
-rw-r--r--ui/source/effects.transfer.js92
1 files changed, 46 insertions, 46 deletions
diff --git a/ui/source/effects.transfer.js b/ui/source/effects.transfer.js
index c2a26128a..87c731508 100644
--- a/ui/source/effects.transfer.js
+++ b/ui/source/effects.transfer.js
@@ -1,46 +1,46 @@
-;(function($) {
-
- $.effects.transfer = function(o) {
-
- return this.queue(function() {
-
- // Create element
- var el = $(this);
-
- // Set options
- var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
- var target = $(o.options.to); // Find Target
- var position = el.offset();
- var transfer = $('<div class="ui-effects-transfer"></div>').appendTo(document.body);
-
- // Set target css
- transfer.addClass(o.options.className);
- transfer.css({
- top: position.top,
- left: position.left,
- height: el.outerHeight(true) - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
- width: el.outerWidth(true) - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')),
- position: 'absolute'
- });
-
- // Animation
- position = target.offset();
- animation = {
- top: position.top,
- left: position.top,
- height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
- width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth'))
- };
-
- // Animate
- transfer.animate(animation, o.duration, o.options.easing, function() {
- transfer.remove(); // Remove div
- if(o.callback) o.callback.apply(el[0], arguments); // Callback
- el.dequeue();
- });
-
- });
-
- };
-
-})(jQuery);
+;(function($) {
+
+ $.effects.transfer = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var target = $(o.options.to); // Find Target
+ var position = el.offset();
+ var transfer = $('<div class="ui-effects-transfer"></div>').appendTo(document.body);
+
+ // Set target css
+ transfer.addClass(o.options.className);
+ transfer.css({
+ top: position.top,
+ left: position.left,
+ height: el.outerHeight(true) - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+ width: el.outerWidth(true) - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')),
+ position: 'absolute'
+ });
+
+ // Animation
+ position = target.offset();
+ animation = {
+ top: position.top,
+ left: position.top,
+ height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+ width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth'))
+ };
+
+ // Animate
+ transfer.animate(animation, o.duration, o.options.easing, function() {
+ transfer.remove(); // Remove div
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+ };
+
+})(jQuery);