[Yanel-commits] rev 25437 - in public/yanel/trunk/src/resources/testing-control: . htdocs htdocs/css htdocs/js

simon at wyona.com simon at wyona.com
Tue Jun 26 09:43:41 CEST 2007


Author: simon
Date: 2007-06-26 09:43:40 +0200 (Tue, 26 Jun 2007)
New Revision: 25437

Added:
   public/yanel/trunk/src/resources/testing-control/htdocs/
   public/yanel/trunk/src/resources/testing-control/htdocs/css/
   public/yanel/trunk/src/resources/testing-control/htdocs/css/testingcontroler.css
   public/yanel/trunk/src/resources/testing-control/htdocs/js/
   public/yanel/trunk/src/resources/testing-control/htdocs/js/ajaxexecutetests.js
Log:
adding htdocs to testingcontrol-resource-type.

Added: public/yanel/trunk/src/resources/testing-control/htdocs/css/testingcontroler.css
===================================================================
--- public/yanel/trunk/src/resources/testing-control/htdocs/css/testingcontroler.css	                        (rev 0)
+++ public/yanel/trunk/src/resources/testing-control/htdocs/css/testingcontroler.css	2007-06-26 07:43:40 UTC (rev 25437)
@@ -0,0 +1,5 @@
+#yanelprogressbarph {
+position:relative;
+float:right;
+margin-right:105px
+}
\ No newline at end of file

Added: public/yanel/trunk/src/resources/testing-control/htdocs/js/ajaxexecutetests.js
===================================================================
--- public/yanel/trunk/src/resources/testing-control/htdocs/js/ajaxexecutetests.js	                        (rev 0)
+++ public/yanel/trunk/src/resources/testing-control/htdocs/js/ajaxexecutetests.js	2007-06-26 07:43:40 UTC (rev 25437)
@@ -0,0 +1,15 @@
+function ajaxexecutetests() {
+  var params = Form.serialize(document.getElementsByTagName("form")[0]);
+  new Ajax.Updater('ajaxreplace', ' ', { method: 'post', onLoading: createProgressBar('yanelprogressbarph'), onSuccess: ajaxeshowprogress(), parameters: params });
+}
+
+function ajaxeshowprogress () {
+  new PeriodicalExecuter(function(pe1) {
+    if (document.getElementById("testDone") != null) {
+      stopProgressBar('yanelprogressbarph')
+      pe1.stop();
+    } else {
+      new Ajax.Updater('ajaxreplace', ' ', { method: 'get', parameters: { 'ajaxshowprogress': 'true', 'yanel.resource.viewid': 'source'} });
+    }
+  }, 1);
+}
\ No newline at end of file




More information about the Yanel-commits mailing list