mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-09 14:42:53 -05:00
js: Remove redundant handling for non-node tiles
This commit is contained in:
parent
4995dc39d0
commit
a1bb91a999
2 changed files with 0 additions and 7 deletions
|
|
@ -22,7 +22,6 @@ class TileRenderer extends Renderer
|
|||
'data-base-target' => '_next',
|
||||
'data-sortable-disabled' => $this->isLocked() ? 'true' : 'false',
|
||||
'data-sortable-data-id-attr' => 'id',
|
||||
'data-sortable-filter' => '.addnew',
|
||||
'data-sortable-direction' => 'horizontal', // Otherwise movement is buggy on small lists
|
||||
'data-csrf-token' => CsrfToken::generate()
|
||||
]
|
||||
|
|
|
|||
|
|
@ -97,12 +97,6 @@
|
|||
'movenode=' + $(evt.item).data('nodeName')
|
||||
].join('&');
|
||||
|
||||
if (! $source.is('.few') && $('.addnew', $source).length === 2) {
|
||||
// This assumes we're not moving things between different lists
|
||||
evt.oldIndex -= 1;
|
||||
evt.newIndex -= 1;
|
||||
}
|
||||
|
||||
var data = {
|
||||
csrfToken: $source.data('csrfToken'),
|
||||
movenode: 'movenode', // That's the submit button..
|
||||
|
|
|
|||
Loading…
Reference in a new issue