aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/nms-map.js2
-rw-r--r--web/js/nms-ui-switch.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/js/nms-map.js b/web/js/nms-map.js
index 179d8e5..d5bc044 100644
--- a/web/js/nms-map.js
+++ b/web/js/nms-map.js
@@ -565,7 +565,7 @@ nmsMap._moveSubmit = function() {
var myData = JSON.stringify([data]);
$.ajax({
type: "POST",
- url: "/api/write/switch-update",
+ url: "/api/write/switches",
dataType: "text",
data:myData,
success: function (data, textStatus, jqXHR) {
diff --git a/web/js/nms-ui-switch.js b/web/js/nms-ui-switch.js
index f66a2b2..b7cbc7c 100644
--- a/web/js/nms-ui-switch.js
+++ b/web/js/nms-ui-switch.js
@@ -28,7 +28,7 @@ class nmsNewNet extends nmsPanel {
class nmsModThing extends nmsBox {
constructor(data) {
- super("div",{html:{className: "panel-body"}});
+ super("div");
this.identifier = data.identifier;
this.invalidate = data.invalidate;
this.api = data.api;