includes/clientside/static/functions.js
changeset 672 08a7875258b4
parent 651 ce9d78d7251d
child 677 2a263b598a2b
--- a/includes/clientside/static/functions.js	Mon Jul 28 13:10:22 2008 -0600
+++ b/includes/clientside/static/functions.js	Mon Jul 28 13:13:09 2008 -0600
@@ -464,6 +464,11 @@
   return position;
 }
 
+function setScrollOffset(offset)
+{
+  window.scroll(0, offset);
+}
+
 // Function to fade classes info-box, warning-box, error-box, etc.
 
 function fadeInfoBoxes()
@@ -568,7 +573,8 @@
   
   blackout.style.backgroundColor = '#FFFFFF';
   domObjChangeOpac(60, blackout);
-  blackout.style.backgroundImage = 'url(' + scriptPath + '/includes/clientside/tinymce/themes/advanced/skins/default/img/progress.gif)';
+  var background = ( $(el).Height() < 48 ) ? 'url(' + scriptPath + '/images/loading.gif)' : 'url(' + scriptPath + '/includes/clientside/tinymce/themes/advanced/skins/default/img/progress.gif)';
+  blackout.style.backgroundImage = background;
   blackout.style.backgroundPosition = 'center center';
   blackout.style.backgroundRepeat = 'no-repeat';
   blackout.style.zIndex = getHighestZ() + 2;