noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/10: Bug #1151Bug cannot remove a submenu


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/10: Bug #1151Bug cannot remove a submenu
Date: Wed, 26 Aug 2015 18:11:17 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit abc6245cb51f2368e09df388dcb8fadfbde9be64
Author: Dany De Bontridder <address@hidden>
Date:   Tue Aug 25 19:58:36 2015 +0200

    Bug #1151Bug cannot remove a submenu
---
 html/js/scripts.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index ca1f765..d656b4e 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -1518,7 +1518,6 @@ function 
display_sub_menu(p_dossier,p_profile,p_dep,p_level)
  */
 function remove_sub_menu(p_dossier,profile_menu_id)
 {
-    if ( ! confirm ('Confirm ?')) return;
     smoke.confirm('Confirme ?', 
     function (e) {
     if (e) {
@@ -1531,10 +1530,11 @@ function remove_sub_menu(p_dossier,profile_menu_id)
             onSuccess:function (req) {
                 try {
                     remove_waiting_box();
+                    $('sub'+profile_menu_id).remove();
                      if ( $('menu_table').rows.length > 1 ) {
                           $('menu_table').rows[1].remove();
                      }
-                    $('sub'+profile_menu_id).remove();
+                    
                 } catch(e)
                 {
                     alert_box(e.message);



reply via email to

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