load_component() now uses wait cursor on document.body
authorDan
Sat, 15 Nov 2008 18:21:16 -0500
changeset 738 0dceea7ac8ff
parent 737 919bcdde5f2a
child 739 dd13aa042f34
load_component() now uses wait cursor on document.body
includes/clientside/static/enano-lib-basic.js
--- a/includes/clientside/static/enano-lib-basic.js	Sun Nov 09 18:21:30 2008 -0500
+++ b/includes/clientside/static/enano-lib-basic.js	Sat Nov 15 18:21:16 2008 -0500
@@ -292,6 +292,7 @@
   ld.style.backgroundImage = 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAA1JREFUCNdj+P///xkACcgDypG+nnEAAAAASUVORK5CYII=)';
   
   document.body.appendChild(ld);
+  document.body.style.cursor = 'wait';
 }
 
 function load_hide_win()
@@ -300,6 +301,7 @@
   if ( !ld )
     return false;
   ld.parentNode.removeChild(ld);
+  document.body.style.cursor = 'default';
 }
 
 // evaluate a snippet of code in the global context, used for dynamic component loading