few dialog fixes
authorunknown <priyanka.karan26@gmail.com>
Mon, 3 Nov 2014 11:44:25 +0000 (11:44 +0000)
committerunknown <priyanka.karan26@gmail.com>
Mon, 3 Nov 2014 11:44:25 +0000 (11:44 +0000)
templates/CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl

index aec4a7d91261341f5645bb3bbc68e8b462627669..9485469c001e752c39e9d1612451e8d59f9f6ded 100644 (file)
             url:  ajaxurl,
             success: function (result) {
               if (result.status != "" && result.status == 'Done') {
-                $("#recurring-dialog").dialog('close');
                 $('#mainTabContainer div:visible Form, form.'+form).submit();
+                $("#recurring-dialog").dialog('close');
               } else if (result.status != "" && result.status == 'Error') {
                 var errorBox = confirm(ts("Mode could not be updated, save only this event?"));
                 if (errorBox == true) {
-                  $("#recurring-dialog").dialog('close');
                   $('#mainTabContainer div:visible Form, form.'+form).submit();
+                  $("#recurring-dialog").dialog('close');
                 } else {
                   $("#recurring-dialog").dialog('close');
                   return false;