[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/14: FIX Confirm box when removing a tag fr
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/14: FIX Confirm box when removing a tag from a document |
Date: |
Sat, 19 Dec 2015 21:17:11 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit e2eebc4b9cf9f92d2ea0e279501901e7ae13ebe2
Author: Dany De Bontridder <address@hidden>
Date: Thu Dec 17 16:06:54 2015 +0100
FIX Confirm box when removing a tag from a document
---
html/js/scripts.js | 54 ++++++++++++++++++++++++++--------------------------
1 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/html/js/scripts.js b/html/js/scripts.js
index b451cfe..929cb4a 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -2488,35 +2488,35 @@ function action_tag_add(p_dossier, ag_id, t_id)
*/
function action_tag_remove(p_dossier, ag_id, t_id)
{
- if (confirm('Enlevez ce tags ?') === false)
- return;
- try {
- waiting_box();
- var queryString = "t_id=" + t_id + "&ag_id=" + ag_id +
"&op=tag_remove&gDossier=" + p_dossier;
- var action = new Ajax.Request(
- "ajax_misc.php",
- {
- method: 'get', parameters: queryString,
- onFailure: ajax_misc_failure,
- onSuccess: function (req, j) {
- var answer = req.responseXML;
- var html = answer.getElementsByTagName('code');
- if (html.length === 0)
- {
- var rec = unescape_xml(req.responseText);
- error_message('erreur :' + rec);
- }
- var code_html = getNodeText(html[0]);
- code_html = unescape_xml(code_html);
- remove_waiting_box();
- $('action_tag_td').innerHTML = code_html;
+ confirm_box(null,'Enlevez ce tags ?',function () {
+ try {
+ waiting_box();
+ var queryString = "t_id=" + t_id + "&ag_id=" + ag_id +
"&op=tag_remove&gDossier=" + p_dossier;
+ var action = new Ajax.Request(
+ "ajax_misc.php",
+ {
+ method: 'get', parameters: queryString,
+ onFailure: ajax_misc_failure,
+ onSuccess: function (req, j) {
+ var answer = req.responseXML;
+ var html = answer.getElementsByTagName('code');
+ if (html.length === 0)
+ {
+ var rec = unescape_xml(req.responseText);
+ error_message('erreur :' + rec);
+ }
+ var code_html = getNodeText(html[0]);
+ code_html = unescape_xml(code_html);
+ remove_waiting_box();
+ $('action_tag_td').innerHTML = code_html;
+ }
}
- }
- );
- } catch (e) {
- error_message(e.getMessage);
- }
+ );
+ } catch (e) {
+ error_message(e.getMessage);
+ }
+ });
}
- [Noalyss-commit] [noalyss] branch master updated (e679566 -> ac316b7), Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 01/14: Correction effacement opération prédéfinie, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 02/14: Ajout filtre dynamique pour PREOD, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 06/14: Bug : export PDF card history incorrect balance, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 05/14: FIX Confirm box when removing a tag from a document,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 03/14: FIX CFGLED toutes les fiches DEB sont toujours sélectionnées, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 04/14: FIX CFGLED toutes les fiches DEB sont toujours sélectionnées, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 10/14: Dialog box, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 12/14: Export CSV missing col, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 14/14: drop function, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 13/14: indent, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 08/14: Translation, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 07/14: Translation, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 11/14: update manual, Dany De Bontridder, 2015/12/19
- [Noalyss-commit] [noalyss] 09/14: Translation, Dany De Bontridder, 2015/12/19