diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-21 12:22:34 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-21 12:22:34 +0100 |
commit | ac9fec052dce3bd911690e9a4ecb5010c5fd9673 (patch) | |
tree | 979d72c73df9b35baf557e67cf9ef652865f9ab3 /web | |
parent | 9f2d2bc0faba3eef6ddfd7cfaf87dc28988acecf (diff) | |
parent | 9294a2f2b20a9289a9b5c4a4b72f308de85d8c30 (diff) |
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'web')
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 2 | ||||
-rw-r--r-- | web/nms.gathering.org/js/nms-map.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index 88bc7d7..dc993a9 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -133,6 +133,8 @@ nmsInfoBox._windowTypes.addSwitch = { if(result.switches_addded.length > 0) { nmsInfoBox.hide(); } + nmsData.invalidate("switches"); + nmsData.invalidate("smanagement"); } }); } diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js index bbb304f..b74626a 100644 --- a/web/nms.gathering.org/js/nms-map.js +++ b/web/nms.gathering.org/js/nms-map.js @@ -433,7 +433,7 @@ nmsMap._moveSubmit = function() { var myData = JSON.stringify([data]); $.ajax({ type: "POST", - url: "/api/private/switch-add", + url: "/api/private/switch-update", dataType: "text", data:myData, success: function (data, textStatus, jqXHR) { |