mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-30 10:29:34 -05:00
js: Don't use icinga.utils.addUrlParams, that's broken and not necessary here
broken? Try to keep sequenced parameters when adding different ones. Good luck.
This commit is contained in:
parent
728d4cb2ae
commit
4995dc39d0
1 changed files with 10 additions and 7 deletions
|
|
@ -91,10 +91,11 @@
|
|||
var evt = event.originalEvent;
|
||||
if (evt.oldIndex !== evt.newIndex) {
|
||||
var $source = $(evt.from);
|
||||
var actionUrl = icinga.utils.addUrlParams($source.data('actionUrl'), {
|
||||
action: 'move',
|
||||
movenode: $(evt.item).data('nodeName')
|
||||
});
|
||||
var actionUrl = [
|
||||
$source.data('actionUrl'),
|
||||
'action=move',
|
||||
'movenode=' + $(evt.item).data('nodeName')
|
||||
].join('&');
|
||||
|
||||
if (! $source.is('.few') && $('.addnew', $source).length === 2) {
|
||||
// This assumes we're not moving things between different lists
|
||||
|
|
@ -141,9 +142,11 @@
|
|||
to: evt.newIndex
|
||||
};
|
||||
|
||||
var actionUrl = icinga.utils.addUrlParams($source.data('actionUrl'), {
|
||||
action: 'move',
|
||||
movenode: $(evt.item).data('nodeName')
|
||||
var actionUrl = [
|
||||
$source.data('actionUrl'),
|
||||
'action=move',
|
||||
'movenode=' + $(evt.item).data('nodeName')
|
||||
].join('&');
|
||||
|
||||
var $container = $target.closest('.container');
|
||||
var req = icinga.loader.loadUrl(actionUrl, $container, data, 'POST');
|
||||
|
|
|
|||
Loading…
Reference in a new issue