diff options
Diffstat (limited to 'modules-available/roomplanner')
-rw-r--r-- | modules-available/roomplanner/clientscript.js | 11 | ||||
-rw-r--r-- | modules-available/roomplanner/hooks/runmode/config.json | 3 | ||||
-rw-r--r-- | modules-available/roomplanner/lang/de/module.json | 4 |
3 files changed, 14 insertions, 4 deletions
diff --git a/modules-available/roomplanner/clientscript.js b/modules-available/roomplanner/clientscript.js index 722e3909..5c9776b2 100644 --- a/modules-available/roomplanner/clientscript.js +++ b/modules-available/roomplanner/clientscript.js @@ -174,9 +174,14 @@ function onBtnSelect() { } function onPcDelete(muuid) { - var bySubnet = machineCache[muuid]; - var bySearch = machineCache[muuid]; - var value = !bySubnet ? bySearch : bySubnet; + var value = machineCache[muuid]; + if (!value) { + subnetMachines.forEach(function (v, i, a) { + if (subnetMachines[i] && subnetMachines[i].machineuuid === muuid) { + value = subnetMachines[i]; + } + }); + } value.fixedlocationid = null; makeCombinedFieldSingle(value); } diff --git a/modules-available/roomplanner/hooks/runmode/config.json b/modules-available/roomplanner/hooks/runmode/config.json index 0f2ce493..27c601fd 100644 --- a/modules-available/roomplanner/hooks/runmode/config.json +++ b/modules-available/roomplanner/hooks/runmode/config.json @@ -2,5 +2,6 @@ "getModeName": "PvsGenerator::getManagerName", "isClient": false, "configHook": "PvsGenerator::runmodeConfigHook", - "allowGenericEditor": false + "allowGenericEditor": false, + "deleteUrlSnippet": "locationid=" }
\ No newline at end of file diff --git a/modules-available/roomplanner/lang/de/module.json b/modules-available/roomplanner/lang/de/module.json new file mode 100644 index 00000000..58dac918 --- /dev/null +++ b/modules-available/roomplanner/lang/de/module.json @@ -0,0 +1,4 @@ +{ + "module_name": "PVS-Manager", + "page_title": "PVS-Manager" +}
\ No newline at end of file |