incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1450950 - /incubator/ambari/trunk/ambari-web/app/utils/http_client.js
Date Wed, 27 Feb 2013 20:41:46 GMT
Author: yusaku
Date: Wed Feb 27 20:41:46 2013
New Revision: 1450950

URL: http://svn.apache.org/r1450950
Log:
AMBARI-1501. Nagios alerts do not update automatically. (yusaku)

Modified:
    incubator/ambari/trunk/ambari-web/app/utils/http_client.js

Modified: incubator/ambari/trunk/ambari-web/app/utils/http_client.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/utils/http_client.js?rev=1450950&r1=1450949&r2=1450950&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/utils/http_client.js (original)
+++ incubator/ambari/trunk/ambari-web/app/utils/http_client.js Wed Feb 27 20:41:46 2013
@@ -73,6 +73,9 @@ App.HttpClient = Em.Object.create({
     var timeout = setTimeout(function () {
       if (xhr.readyState == 4) {
         if (xhr.status == 200) {
+          try {
+            App.store.commit();
+          } catch (err) {}
           mapper.map($.parseJSON(xhr.responseText));
           tmp_val.complete.call(self);
           xhr.abort();



Mime
View raw message