mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-09 22:13:05 -05:00
ui: Set appropriate cursors when the user drags and drops stuff
This commit is contained in:
parent
ccdadf68f2
commit
b3a5c34c45
2 changed files with 23 additions and 4 deletions
|
|
@ -103,6 +103,26 @@ ul.bp {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
// cursors!!!1
|
||||
&:not([data-sortable-disabled="true"]) {
|
||||
.movable {
|
||||
cursor: grab;
|
||||
|
||||
&.sortable-chosen {
|
||||
cursor: grabbing;
|
||||
}
|
||||
}
|
||||
|
||||
&.progress .movable {
|
||||
cursor: wait;
|
||||
}
|
||||
}
|
||||
&[data-sortable-disabled="true"] {
|
||||
li.process > div {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
// ghost style
|
||||
&.sortable > li.sortable-ghost {
|
||||
position: relative;
|
||||
|
|
@ -193,10 +213,6 @@ ul.bp {
|
|||
|
||||
// collapse handling
|
||||
li.process {
|
||||
> div {
|
||||
cursor: pointer; // So that users know they can interact
|
||||
}
|
||||
|
||||
// toggle, default
|
||||
> div > a.toggle > i:before {
|
||||
-webkit-transition: -webkit-transform 0.3s;
|
||||
|
|
|
|||
|
|
@ -120,6 +120,9 @@
|
|||
$target = $(evt.to);
|
||||
|
||||
if (evt.oldIndex !== evt.newIndex || !$target.is($source)) {
|
||||
var $root = $target.closest('.content > ul.bp');
|
||||
$root.addClass('progress');
|
||||
|
||||
var data = {
|
||||
csrfToken: $target.data('csrfToken'),
|
||||
movenode: 'movenode', // That's the submit button..
|
||||
|
|
|
|||
Loading…
Reference in a new issue