Title: [opsview] [10014] Don't show the 'number of changes' link if everything's OK.
Revision
10014
Author
pknight
Date
2012-09-10 15:42:34 +0100 (Mon, 10 Sep 2012)

Log Message

Don't show the 'number of changes' link if everything's OK.

Modified Paths


Modified: trunk/opsview-web/root/admin/reload/opsview
===================================================================
--- trunk/opsview-web/root/admin/reload/opsview	2012-09-10 13:43:31 UTC (rev 10013)
+++ trunk/opsview-web/root/admin/reload/opsview	2012-09-10 14:42:34 UTC (rev 10014)
@@ -79,14 +79,15 @@
 	if (override) {
 		status = override;
 	}
-	//alert("In update status with status="+status+" last_state="+last_state);
 	if (status == '0') {
-		// running
+		// opsviewd is running
 		Element.hide('warnings');
 		Element.hide('reloading');
 		Element.hide('not_running');
 		Element.hide('exception');
-		Element.show('auditlog_entries');
+        if ( last_state != '1' ) {
+            Element.show('auditlog_entries');
+        }
 		Element.show('running');
 		Element.show('reload_button');
 		if (Element.visible('reloading_gears')) {
@@ -149,7 +150,7 @@
 		Element.show('auditlog_entries');
 		frequency = 10000;
 		if(clock) { clearInterval(clock); }
-        }
+    }
 }
 
 [%

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to