Author: Lars Michelsen <[email protected]>
Date: Wed Jun 5 11:24:13 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Jun 5 11:24:13 2013 +0200
FIX: Not adding textboxes to "to be updated list" anymore
This might have lead to objects not being reloaded on maps with many texboxes
---
ChangeLog | 4 ++++
share/frontend/nagvis-js/js/frontend.js | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ba6acbd..a04d557 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@ Core:
for viewing maps in the context of this user
* FIX: Fixed state weight definition parsing
+Frontend:
+ * FIX: Not adding textboxes to "to be updated list" anymore; This might have
+ lead to objects not being reloaded on maps with many texboxes
+
1.7.8
Automap:
* FIX: Added missing program restarted check to invalidate chaches
diff --git a/share/frontend/nagvis-js/js/frontend.js
b/share/frontend/nagvis-js/js/frontend.js
index b492844..d2f7627 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -281,7 +281,9 @@ function getObjectsToUpdate() {
for(var i in oMapObjects) {
if(oMapObjects[i].lastUpdate <= iNow -
oWorkerProperties.worker_update_object_states) {
// Do not update objects where enable_refresh=0
- if(oMapObjects[i].conf.type !== 'shape' &&
oMapObjects[i].conf.type !== 'container') {
+ if(oMapObjects[i].conf.type !== 'textbox'
+ && oMapObjects[i].conf.type !== 'shape'
+ && oMapObjects[i].conf.type !== 'container') {
arrReturn.push(i);
} else if(oMapObjects[i].conf.enable_refresh &&
oMapObjects[i].conf.enable_refresh == '1') {
arrReturn.push(i);
@@ -1926,7 +1928,7 @@ function getUrlParts(arrObj) {
// Only continue with the loop when below param limit
// and below maximum length
- for(var i = 0, len = arrObj.length; i < len &&
(oWorkerProperties.worker_request_max_params == 0 ||
(oWorkerProperties.worker_request_max_params != 0 && iUrlParams <
oWorkerProperties.worker_request_max_params)); i++) {
+ for(var i = 0, len = arrObj.length; i < len &&
(oWorkerProperties.worker_request_max_params == 0 || iUrlParams <
oWorkerProperties.worker_request_max_params); i++) {
var type = oMapObjects[arrObj[i]].conf.type;
var name = oMapObjects[arrObj[i]].conf.name;
if(name) {
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins