noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/04: Correct small bugs for javascript Use


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/04: Correct small bugs for javascript Use of $_ENV[TMP] Correct trigger jrnx_ins
Date: Thu, 24 Mar 2016 19:15:02 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 8eefde1dad66c69edb8e2e0e8a19d253b351c324
Author: Dany De Bontridder <address@hidden>
Date:   Thu Mar 24 20:11:51 2016 +0100

    Correct small bugs for javascript
    Use of $_ENV[TMP]
    Correct trigger jrnx_ins
---
 html/js/acc_ledger.js                 |    1 +
 include/class/class_anc_operation.php |    1 +
 include/class/class_document.php      |    2 +-
 include/constant.php                  |    2 +-
 include/template/detail-action.php    |    1 -
 5 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js
index ad61786..4cbc790 100644
--- a/html/js/acc_ledger.js
+++ b/html/js/acc_ledger.js
@@ -1085,6 +1085,7 @@ function op_save(obj)
                                         var answer=xml.responseXML;
                                         var html = 
answer.getElementsByTagName('code');
                                         
$(divid).innerHTML=unescape(getNodeText(html[0]));
+                                         $(divid).innerHTML.evalScripts();
                                         remove_waiting_box();
                                         }  catch (e) {
                                             alert_box("1038"+e.message)
diff --git a/include/class/class_anc_operation.php 
b/include/class/class_anc_operation.php
index 16837db..52f2df9 100644
--- a/include/class/class_anc_operation.php
+++ b/include/class/class_anc_operation.php
@@ -800,6 +800,7 @@ class Anc_Operation
     function save_update_form($p_array)
     {
         extract($p_array);
+        if ( ! isset($opanc)) return;
         for ($i = 0; $i < count($opanc); $i++)
         {
             /* clean operation_analytique */
diff --git a/include/class/class_document.php b/include/class/class_document.php
index 710b754..d3a544c 100644
--- a/include/class/class_document.php
+++ b/include/class/class_document.php
@@ -192,7 +192,7 @@ class Document
         $h=fopen($infile_name,"r");
 
         // check if tmpdir exist otherwise create it
-        $temp_dir=$_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.'tmp';
+        $temp_dir=$_ENV['TMP'];
         if ( is_dir($temp_dir) == false )
         {
             if ( mkdir($temp_dir) == false )
diff --git a/include/constant.php b/include/constant.php
index 27f3fed..de0dcbb 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -104,7 +104,7 @@ if ( !defined("SITE_UPDATE_PLUGIN"))
 if ( ! defined ("SYSINFO_DISPLAY")) {
     define ("SYSINFO_DISPLAY",TRUE);
 }
-define ("DBVERSION",124);
+define ("DBVERSION",125);
 define ("MONO_DATABASE",25);
 define ("DBVERSIONREPO",16);
 define ('NOTFOUND','--not found--');
diff --git a/include/template/detail-action.php 
b/include/template/detail-action.php
index 215011c..349050b 100644
--- a/include/template/detail-action.php
+++ b/include/template/detail-action.php
@@ -342,7 +342,6 @@ if ( ($aCard[$i] != 0 && $p_view == 'READ') || $p_view != 
'READ'):
     <?php if ($p_view != "READ" ): ?>
 <script language="JavaScript">
 if ( $('e_march0') && $('e_march0').value =='') { toggleShowDetail();}
-$('div_generate_document').hide();
 function toggleShowDetail() {
        try {var detail=g('fldDetail');
        var but=g('toggleButton');



reply via email to

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