includes/clientside/static/login.js
changeset 699 c7d737202d59
parent 694 43367c66d869
child 718 12485b1d41fd
--- a/includes/clientside/static/login.js	Sun Aug 17 23:24:41 2008 -0400
+++ b/includes/clientside/static/login.js	Thu Aug 21 08:24:04 2008 -0400
@@ -92,7 +92,8 @@
 {
   load_component('messagebox');
   load_component('flyin');
-  load_component('SpryEffects');
+  load_component('jquery');
+  load_component('jquery-ui');
   load_component('l10n');
   load_component('crypto');
   
@@ -365,7 +366,7 @@
       ajaxLoginSetStatus(AJAX_STATUS_DESTROY);
       document.getElementById('messageBox').style.backgroundColor = '#C0C0C0';
       var mb_parent = document.getElementById('messageBox').parentNode;
-      new Spry.Effect.Shake(mb_parent, {duration: 1500}).start();
+      $(mb_parent).effect("shake", {}, 1500);
       setTimeout(function()
         {
           document.getElementById('messageBox').style.backgroundColor = '#FFF';
@@ -386,7 +387,7 @@
         ajaxLoginSetStatus(AJAX_STATUS_DESTROY);
         document.getElementById('messageBox').style.backgroundColor = '#C0C0C0';
         var mb_parent = document.getElementById('messageBox').parentNode;
-        new Spry.Effect.Shake(mb_parent, {duration: 1500}).start();
+        $(mb_parent).effect("shake", {}, 1500);
         setTimeout(function()
           {
             document.getElementById('messageBox').style.backgroundColor = '#FFF';
@@ -855,7 +856,7 @@
   // console.info('Drawing new error-box');
   
   // calculate position for the top of the box
-  var mb_bottom = $('messageBoxButtons').Top() + $('messageBoxButtons').Height();
+  var mb_bottom = $dynano('messageBoxButtons').Top() + $dynano('messageBoxButtons').Height();
   // if the box isn't done flying in yet, just estimate
   if ( mb_bottom < ( getHeight() / 2 ) )
   {