From: Scott Baker Date: Mon, 2 Jun 2014 03:30:30 +0000 (-0700) Subject: merge Amisha changes X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0486e17eed5768ce90480aebd51abf109e46915e;p=plstackapi.git merge Amisha changes --- 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 () {