CLOUDSTACK-1893:[AWS Style Health Checks] UI hangs when one tries to create 
health check policy on a LB rule with VR as LB service provider


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c5158739
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c5158739
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c5158739

Branch: refs/heads/vmsync
Commit: c51587396adc1e179eec8a84569d2d7221380d00
Parents: 8a435f5
Author: Pranav Saxena <[email protected]>
Authored: Tue Apr 9 13:51:33 2013 +0530
Committer: Pranav Saxena <[email protected]>
Committed: Tue Apr 9 13:51:33 2013 +0530

----------------------------------------------------------------------
 ui/scripts/ui-custom/healthCheck.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c5158739/ui/scripts/ui-custom/healthCheck.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/healthCheck.js 
b/ui/scripts/ui-custom/healthCheck.js
index ebb7e5a..4b42fa7 100644
--- a/ui/scripts/ui-custom/healthCheck.js
+++ b/ui/scripts/ui-custom/healthCheck.js
@@ -164,7 +164,15 @@
                                                                                
        }
                                                                                
});                                                                             
                                                                        }, 
g_queryAsyncJobResultInterval);                                                 
                             
-                                                               }
+                                                               },
+                                                           
+                                                               
error:function(json){
+
+                                                                  
cloudStack.dialog.notice({message: _s(json.responseText)}); //Error message in 
the API needs to be improved
+                                                                  
$healthCheckDialog.dialog('close');
+                                                                  
$('.overlay').remove();
+                                                              }
+
                                                        });
             }
           }                                    

Reply via email to