noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 10/10: remove debug info


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/10: remove debug info
Date: Thu, 27 Nov 2014 22:55:09 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6ac63883d93a4278f93c81b1d8c580f74f28b63d
Author: Dany De Bontridder <address@hidden>
Date:   Thu Nov 27 23:53:56 2014 +0100

    remove debug info
---
 html/js/accounting_item.js |    7 -------
 html/js/anc_script.js      |    4 ----
 html/js/card.js            |   17 +++--------------
 html/js/infobulle.js       |    2 +-
 html/js/scripts.js         |    6 ++----
 5 files changed, 6 insertions(+), 30 deletions(-)

diff --git a/html/js/accounting_item.js b/html/js/accounting_item.js
index ea71d9d..22518f6 100644
--- a/html/js/accounting_item.js
+++ b/html/js/accounting_item.js
@@ -53,7 +53,6 @@ function set_jrn_parent(p_ctl,p_value)
 
 function PcmnUpdate(p_value,p_lib,p_parent,p_type,p_dossier,p_top,p_action)
 {
-    console.log(p_type);
     $('p_valu').value=p_value;
     $('p_oldu').value=p_value;
     $('p_libu').value=p_lib;
@@ -285,7 +284,6 @@ function account_update(p_obj_id)
 {
     try {
         waiting_box();
-        console.log('call account_update');
         // initialize variables
         var gDossier=0;
         var p_action="";
@@ -310,7 +308,6 @@ function account_update(p_obj_id)
             }
         if ( form['p_typeu']) { p_typeu=form['p_typeu'].value;} else { 
notfound+=", p_typeu";}
         
-        console.log (notfound);
         
         if ( notfound != "not found:") throw notfound;
             
@@ -333,11 +330,8 @@ function account_update(p_obj_id)
                                 var rec = req.responseText;
                                 alert('erreur :' + rec);
                             }
-                            console.log("ctl ");console.log(ctl);
-                            console.log('Received ajax_call');
                             var code_html = getNodeText(html[0]); // Firefox 
ne prend que les 4096 car.
                             code_html = unescape_xml(code_html);
-                            console.log(code_html);
                             
                             $(name_ctl).innerHTML = code_html;
                             if ( ctl == 'ok') {
@@ -354,7 +348,6 @@ function account_update(p_obj_id)
         );
         
     }catch (e) {
-        if (console) { console.log('Account update'); }
         return false;
     }
     return false;
diff --git a/html/js/anc_script.js b/html/js/anc_script.js
index a4887a9..aa4edfa 100644
--- a/html/js/anc_script.js
+++ b/html/js/anc_script.js
@@ -408,7 +408,6 @@ function anc_key_compute(p_dossier, p_table, p_amount, 
p_key_id)
 
                             var code_html = getNodeText(html[0]); // Firefox 
ne prend que les 4096 car.
                             code_html = unescape_xml(code_html);
-                            console.log(code_html);
                             $(name_ctl).innerHTML = code_html;
                             removeDiv('div_anc_key_choice');
                         } catch (e)
@@ -457,10 +456,8 @@ function anc_key_choice(p_dossier, p_table, 
p_amount,p_ledger)
                                 alert('erreur :' + rec);
                             }
 
-                            console.log('Received ajax_call');
                             var code_html = getNodeText(html[0]); // Firefox 
ne prend que les 4096 car.
                             code_html = unescape_xml(code_html);
-                            console.log(code_html);
                             var position=fixed_position(50,120);
                             add_div({id: name_ctl, cssclass: 'inner_box', 
style: position, drag: 1});
                             $(name_ctl).innerHTML = code_html;
@@ -528,7 +525,6 @@ function anc_key_compute_table()
     var percent=document.getElementsByName('percent[]');
     for (i=0;i<percent.length;i++)
     {
-        console.log(percent[i].value);
         value=percent[i].value;
         if ( value == 'undefined')
         {
diff --git a/html/js/card.js b/html/js/card.js
index 10eb78d..1b0d640 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -171,7 +171,6 @@ function action_add_concerned_card(obj)
                     onSuccess: function (req, txt)
                     {
                         try {
-                        console.log(1);
                         remove_waiting_box();
                         var answer = req.responseXML;
                         var a = answer.getElementsByTagName('ctl');
@@ -180,17 +179,11 @@ function action_add_concerned_card(obj)
                             var rec = req.responseText;
                             alert('erreur :' + rec);
                         }
-                        console.log(2);
                         var html = answer.getElementsByTagName('code');
-                        console.log(3);
                         var namectl = a[0].firstChild.nodeValue;
-                        console.log(31);
                         var nodeXml = html[0];
-                        console.log(32);
                         var code_html = getNodeText(nodeXml);
-                        console.log(33);
                         code_html = unescape_xml(code_html);
-                        console.log(34);
 
                         var sx = 0;
                         if (window.scrollY)
@@ -201,14 +194,12 @@ function action_add_concerned_card(obj)
                         {
                             sx = document.body.scrollTop + 60;
                         }
-                        console.log(4);
                         var div_style = "top:" + sx + "px;height:80%";
                         if ( ! $('search_card')) { add_div({id: 'search_card', 
cssclass: 'inner_box', html: "", style: div_style, drag: true}); }
                         $('search_card').innerHTML = code_html;
                         $('query').focus();
-                        console.log(5);
                         }catch (e) {
-                            console.log('Erreur ')+e.message;
+                            alert(e.message);
                         }
                     }
                 }
@@ -857,7 +848,6 @@ function action_save_concerned(p_dossier, p_fiche_id, 
p_action_id) {
                 onSuccess: function (req, txt)
                 {
                     try {
-                        console.log(1);
                         remove_waiting_box();
                         var answer = req.responseXML;
                         var a = answer.getElementsByTagName('ctl');
@@ -874,7 +864,7 @@ function action_save_concerned(p_dossier, p_fiche_id, 
p_action_id) {
                         removeDiv('search_card');
                         $('concerned_card_td').innerHTML = code_html;
                     } catch (e) {
-                        console.log('Erreur ') + e.message;
+                       
                     }
                 }
             }
@@ -891,7 +881,6 @@ function 
action_remove_concerned(p_dossier,p_fiche_id,p_action_id)
                 onSuccess: function (req, txt)
                 {
                     try {
-                        console.log(1);
                         remove_waiting_box();
                         var answer = req.responseXML;
                         var a = answer.getElementsByTagName('ctl');
@@ -908,7 +897,7 @@ function 
action_remove_concerned(p_dossier,p_fiche_id,p_action_id)
                         removeDiv('search_card');
                         $('concerned_card_td').innerHTML = code_html;
                     } catch (e) {
-                        console.log('Erreur ') + e.message;
+                        if ( console) { console.log('Erreur ') + e.message;}
                     }
                 }
             }
diff --git a/html/js/infobulle.js b/html/js/infobulle.js
index 5dadc36..da54535 100644
--- a/html/js/infobulle.js
+++ b/html/js/infobulle.js
@@ -46,7 +46,7 @@ content[15]="Laissez à 0 pour ne rien changer";
 content[16]="Vous devez donner la date par opération";
 content[17]="Cliquez sur le titre d'une colonne pour trier";
 content[18]="Donnez une partie du nom, prénom, de la description, du poste 
comptable, du n° de TVA,quick code ... ";
-content[19]="Donnez une partie du nom, de la description,  du n° de TVA ou 
quick code";
+content[19]="Donnez une partie du nom, de la description,  du n° de TVA du 
poste comptable ou du quick code";
 content[20]="Les menus ne peuvent dépendre que dans d'un menu principal ou 
d'un menu, si cette liste est vide, ajouter des modules ou menu principal sans 
donner de dépendance";
 content[21]="Donnez un nombre entre 0 & 100";
 content[22]="Donnez une partie du nom du dossier,du nom, du prénom ou du login 
pour filtrer";
diff --git a/html/js/scripts.js b/html/js/scripts.js
index 5d46377..3b4c4c4 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -845,7 +845,7 @@ function show_ledger_choice(json_obj)
                             code_html = unescape_xml(code_html);
                             remove_waiting_box();
                             g(obj.id).innerHTML = code_html;
-
+                           
                         }
                         catch (e) {
                             alert("show_ledger_callback" + e.message);
@@ -2609,13 +2609,11 @@ function show_tabs(a_tabs,p_display_tab)
         if ( a_tabs.length == 0 ) trow ('a_tabs in empty');
         var i=0;
         for ( i=0;i<a_tabs.length;i++) {
-           if ( console ) console.log(a_tabs[i]);
             $(a_tabs[i]).hide();
         }
-       if ( console )console.log(p_display_tab);
         $(p_display_tab).show();
     } catch(e) {
-        if ( console )console.log(e.message);
+       alert(e.message);
     }
     
 }



reply via email to

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