[Yanel-commits] rev 25438 - public/yanel/trunk/src/webapp/htdocs/yanel-js

simon at wyona.com simon at wyona.com
Tue Jun 26 09:50:06 CEST 2007


Author: simon
Date: 2007-06-26 09:50:05 +0200 (Tue, 26 Jun 2007)
New Revision: 25438

Modified:
   public/yanel/trunk/src/webapp/htdocs/yanel-js/progressBar.js
Log:
use prototype instead of old dom methodes. add stop methode.

Modified: public/yanel/trunk/src/webapp/htdocs/yanel-js/progressBar.js
===================================================================
--- public/yanel/trunk/src/webapp/htdocs/yanel-js/progressBar.js	2007-06-26 07:43:40 UTC (rev 25437)
+++ public/yanel/trunk/src/webapp/htdocs/yanel-js/progressBar.js	2007-06-26 07:50:05 UTC (rev 25438)
@@ -15,8 +15,8 @@
     i = i - 1;
     flag = "d";
   }
-  if (document.getElementById("yanelprogressbarindicator") != null) {
-    document.getElementById('yanelprogressbarindicator').style.left = i-80 + '%';
+  if ($('yanelprogressbarindicator') != null) {
+    $('yanelprogressbarindicator').style.left = i-80 + '%';
   } else {
     window.clearInterval(yanelProgressBarActive); 
   }
@@ -25,4 +25,8 @@
 function createProgressBar (target) {
   $(target).update('<div id="yanelprogressbar"><div id="yanelprogressbarindicator">|||||||||</div></div>');
   startMoveProgressBar();
+}
+
+function stopProgressBar (target) {
+  $(target).remove();
 }
\ No newline at end of file




More information about the Yanel-commits mailing list