merge Amisha changes
authorScott Baker <smbaker@gmail.com>
Mon, 2 Jun 2014 03:30:30 +0000 (20:30 -0700)
committerScott Baker <smbaker@gmail.com>
Mon, 2 Jun 2014 03:30:30 +0000 (20:30 -0700)
planetstack/templates/admin/dashboard/tenant.html

index 07d1e9c..bf49471 100644 (file)
                                                                 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 () {