phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5069 - phpcompta/tags/rel650/html/js


From: phpcompta-dev
Subject: [Phpcompta-dev] r5069 - phpcompta/tags/rel650/html/js
Date: Sun, 15 Jul 2012 11:15:05 +0200 (CEST)

Author: danydb
Date: 2012-07-15 11:15:05 +0200 (Sun, 15 Jul 2012)
New Revision: 5069

Modified:
   phpcompta/tags/rel650/html/js/scripts.js
Log:
Javascript var ask_global to reload window if it is <> 0


Modified: phpcompta/tags/rel650/html/js/scripts.js
===================================================================
--- phpcompta/tags/rel650/html/js/scripts.js    2012-07-15 09:14:27 UTC (rev 
5068)
+++ phpcompta/tags/rel650/html/js/scripts.js    2012-07-15 09:15:05 UTC (rev 
5069)
@@ -23,6 +23,8 @@
  * \brief javascript script, always added to every page
  *
  */
+
+var ask_reload=0;
 /**
 * callback function when we just need to update a hidden div with an info
 * message
@@ -135,7 +137,7 @@
 
 /**
  address@hidden will reload the window but it is dangerous if we have submitted
- * a form
+ * a form with POST
  */
 function refresh_window()
 {
@@ -653,6 +655,12 @@
     {
         document.body.removeChild(g(elt));
     }
+       // if reloaded if asked the window will be reloaded when
+       // the box is closed
+       if ( ask_reload == 1)
+       {
+               window.location.reload;
+       }
 }
 /**
  *show a box while loading
@@ -664,6 +672,7 @@
        obj={
                id:'wait_box',html:loading()
                };
+       obj.style=fixed_position(350,200)+";width:200px";
        if ($('wait_box')){
                removeDiv('wait_box');
                }



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]