aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-info-box.js
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-23 04:43:16 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-23 04:43:16 +0100
commitebb539842ccad977a721b4eb515099ced8bc30c0 (patch)
tree22075305910b774b6b90b2b7010f24cdf5c3e346 /web/nms.gathering.org/js/nms-info-box.js
parentb3eb7f0b727d11280ee777e7d0793000bc23d14b (diff)
Hide info-box on successful save
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js
index 0b90d49..ba07275 100644
--- a/web/nms.gathering.org/js/nms-info-box.js
+++ b/web/nms.gathering.org/js/nms-info-box.js
@@ -344,6 +344,10 @@ nmsInfoBox._windowTypes.switchInfo = {
dataType: "text",
data:myData,
success: function (data, textStatus, jqXHR) {
+ var result = JSON.parse(data);
+ if(result.switches_updated.length > 0) { // FIXME unresolved variable switches_addded
+ nmsInfoBox.hide();
+ }
nmsData.invalidate("switches");
nmsData.invalidate("smanagement");
}