From 0486e17eed5768ce90480aebd51abf109e46915e Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Sun, 1 Jun 2014 20:30:30 -0700 Subject: [PATCH] merge Amisha changes --- .../templates/admin/dashboard/tenant.html | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/planetstack/templates/admin/dashboard/tenant.html b/planetstack/templates/admin/dashboard/tenant.html index 07d1e9c..bf49471 100644 --- a/planetstack/templates/admin/dashboard/tenant.html +++ b/planetstack/templates/admin/dashboard/tenant.html @@ -268,10 +268,14 @@ state: "inactive" }, type: 'POST', - complete: function () { + success: function () { $("#tabs-5").empty(); initTenant(); //location.reload(); - } + }, + error:function (xhr, textStatus, thrownError){ + errorDialog("Error:", textStatus + " " + xhr.responseText); + } + }); }); @@ -481,8 +485,7 @@ location.reload(); return true; } }, - success: function (response) {}, - complete: function () { + success: function () { location.reload(); } }); @@ -498,7 +501,7 @@ location.reload(); }, async: false, type: 'POST', - complete: function () { + success: function () { location.reload(); } }); @@ -533,10 +536,12 @@ location.reload(); state: "inactive" }, type: 'POST', - success: function (response) {}, - complete: function () { + success: function () { location.reload(); - } + }, + error:function (xhr, textStatus, thrownError){ + errorDialog("Error:", textStatus + " " + xhr.responseText); + } }); }, Cancel: function () { -- 2.47.0