mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00:00
Merge pull request #31 from luke-browning/master
Fire draggable.stop event after data attributes have been updated.
This commit is contained in:
commit
a7ed9a4ade
@ -1586,10 +1586,6 @@
|
||||
this.$player.coords().grid.row = row;
|
||||
this.$player.coords().grid.col = col;
|
||||
|
||||
if (this.options.draggable.stop) {
|
||||
this.options.draggable.stop.call(this, event, ui);
|
||||
}
|
||||
|
||||
this.$player.addClass('player-revert').removeClass('player')
|
||||
.attr({
|
||||
'data-col': col,
|
||||
@ -1598,6 +1594,10 @@
|
||||
'left': '',
|
||||
'top': ''
|
||||
});
|
||||
|
||||
if (this.options.draggable.stop) {
|
||||
this.options.draggable.stop.call(this, event, ui);
|
||||
}
|
||||
|
||||
this.$preview_holder.remove();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user