includes/clientside/static/paginate.js
changeset 98 6457a9b983c6
parent 86 c162ca39db8f
--- a/includes/clientside/static/paginate.js	Sun Aug 19 16:22:04 2007 -0400
+++ b/includes/clientside/static/paginate.js	Sat Aug 25 12:11:31 2007 -0400
@@ -193,8 +193,12 @@
   
 }
 
+var __paginateLock = false;
+
 function jspaginator_goto(pagin_id, jump_to)
 {
+  if ( __paginateLock )
+    return false;
   var theobj = pagin_objects[pagin_id];
   var current_div = false;
   var new_div = false;
@@ -239,6 +243,7 @@
   }
   else
   {
+    __paginateLock = true;
     var fade_time = 375;
     var code = 'var old = \'' + current_div.id + '\';';
     code    += 'var newer = \'' + new_div.id + '\';';
@@ -246,6 +251,7 @@
     code    += 'changeOpac(0, newer);';
     code    += 'document.getElementById(newer).style.display = "block";';
     code    += 'opacity(newer, 0, 100, '+fade_time+');';
+    code    += '__paginateLock = false;';
     // if ( window.console )
       // window.console.debug('metacode for fader: ', code);
     opacity(current_div.id, 100, 0, fade_time);