[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete |
Date: |
Mon, 18 Dec 2017 13:22:57 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit b61fd0bc975de1b57d9995611870430830345b8b
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 26 13:45:08 2017 +0100
Code cleaning : remove obsolete
---
html/js/accounting_item.js | 133 ---------------------------------------------
1 file changed, 133 deletions(-)
diff --git a/html/js/accounting_item.js b/html/js/accounting_item.js
index 6bc290d..4694f73 100644
--- a/html/js/accounting_item.js
+++ b/html/js/accounting_item.js
@@ -40,60 +40,6 @@ function set_jrn_parent(p_ctl,p_value)
}
}
/**
- address@hidden Display a box with accounting detail for update, delete or
add, update the
- * table account_tbl_id
- address@hidden p_dossier dossier id
- address@hidden p_val value of the accounting, it is used to compute the row id
- */
-function pcmn_update(p_dossier, p_val)
-{
- var query = {gDossier: p_dossier, value: p_val, op: 'pcmn_update'};
- waiting_box();
- var action = new Ajax.Request('ajax_misc.php',
- {
- method: 'get',
- parameters: query,
- onSuccess: function (req)
- {
- try
- {
- remove_waiting_box();
- var answer = req.responseXML;
- var a = answer.getElementsByTagName('ctl');
- var html = answer.getElementsByTagName('code');
- var status= answer.getElementsByTagName('status');
-
- if (a.length == 0)
- {
- var rec = req.responseText;
- alert_box('erreur :' + rec);
- }
-
- var name_ctl = getNodeText(a[0]);
- var code_html = getNodeText(html[0]);
- var result = getNodeText(status[0]);
- $('acc_update').innerHTML=code_html;
- $('acc_update').setStyle('top:'+calcy(150)+'px');
- $('acc_update').show();
- }
- catch (e)
- {
- error_message(e.message);
- }
- try
- {
- code_html.evalScripts();
- }
- catch (e)
- {
- alert_box("Impossible executer script de la reponse\n"
+ e.message);
- }
-
- }
- }
- );
-}
-/**
address@hidden show the popup for search an accounting item
address@hidden object this, it must contains some attribute as
* - jrn if set and different to 0, will filter the accounting item for a
@@ -298,82 +244,3 @@ function pausecomp(millis)
do { curDate = new Date(); }
while(curDate-date < millis);
}
-/**
- * Update an accounting with the information in the form, called frmo
- * param_pcmn.inc.php
- * @returns false
- */
-function pcmn_save()
-{
- try {
- waiting_box();
- // initialize variables
- var gDossier=0;
- var p_action="";
- var p_oldu=-1;
- var p_valu="";
- var p_libu="";
- var p_parentu="";
- var form=$('acc_update_frm_id');
- var notfound="not found:";
- var p_typeu=-1;
- var acc_delete=0;
- // get them
- if ( form['gDossier']) { gDossier=form['gDossier'].value;}else {
notfound+='gDossier';}
- if ( form['p_action']) { p_action=form['p_action'].value;}else {
notfound+=', p_action ';}
- if ( form['p_oldu']) { p_oldu=form['p_oldu'].value;}else {
notfound+=', p_oldu';}
- if ( form['p_valu']) { p_valu=form['p_valu'].value;}else {
notfound+=', p_valu';}
- if ( form['p_libu']) { p_libu=form['p_libu'].value;}else {
notfound+=', p_libu ';}
- if ( form['p_parentu']) { p_parentu=form['p_parentu'].value;}else {
notfound+='p_parentu';}
- if ( form['delete_acc']) {
- if (form['delete_acc'].checked) { acc_delete=1;} else
{acc_delete=0} }
- else {
- notfound += ', delete_acc';
- }
- if ( form['p_typeu']) { p_typeu=form['p_typeu'].value;} else {
notfound+=", p_typeu";}
-
-
- if ( notfound != "not found:") throw notfound;
-
- var
queryString={op:'account_update',action:p_action,gDossier:gDossier,p_oldu:p_oldu,p_valu:p_valu,p_libu:p_libu,p_parentu:p_parentu,acc_delete:acc_delete,p_typeu:p_typeu};
- var ajax_action = new Ajax.Request(
- "ajax_misc.php",
- {
- method: 'get',
- parameters: queryString,
- onFailure: error_box,
- onSuccess: function(req, json) {
- try
- {
- remove_waiting_box();
- var name_ctl = 'acc_update_info';
- var answer = req.responseXML;
- var html = answer.getElementsByTagName('code');
- var ctl =
answer.getElementsByTagName('ctl')[0].textContent;
- if (html.length == 0) {
- var rec = req.responseText;
- alert_box('erreur :' + rec);
- }
- var code_html = getNodeText(html[0]); // Firefox
ne prend que les 4096 car.
- code_html = unescape_xml(code_html);
-
- $(name_ctl).innerHTML = code_html;
- if ( ctl == 'ok') {
- window.location.reload();
- }
- } catch (e)
- {
- error_message(e.message);
- return false;
- }
- }
- }
-
- );
-
- }catch (e) {
- return false;
- }
- return false;
-}
-
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear, (continued)
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 153/219: HtmlInput: fix small bug in fct image_click, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 158/219: Fix issue with open_basedir, sometime set in the server config, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 148/219: ANC : esthetic ; remove inline CSS, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 77/219: PRINTJRN : enlève num opération, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 145/219: ANC : Bouton "recherche" sont des loupes, ajout title, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 168/219: Task #1476 : prevent the use of some accounting Code cleaning , remove obsolete files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 161/219: Noalyss_SQL :: count add a space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 107/219: task #0001272: Rendre possible l'appel de la calculatrice depuis le fin fond d'une page., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 83/219: NUM_FIELD = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 129/219: Anc ODS : esthetic search analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du poste = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but array_key_exists,, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 217/219: Acc_Account : add function , improve function verify, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 49/219: improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 136/219: Infobulle : avoid that the info balloon exceed limit of the display, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 171/219: remove useless, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test, Dany De Bontridder, 2017/12/18