You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/02/27 21:41:46 UTC
svn commit: r1450950 -
/incubator/ambari/trunk/ambari-web/app/utils/http_client.js
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();