Only run sortable handler if specified
This commit is contained in:
parent
f49b5ab4b8
commit
744d578df7
|
|
@ -239,12 +239,14 @@
|
|||
Repeater.prototype.onSortStop = function($item, container, callback, event) {
|
||||
var endIndex = $item.index()
|
||||
|
||||
if (this.options.sortableHandler) {
|
||||
this.$el.request(this.options.sortableHandler, {
|
||||
data: {
|
||||
_repeater_index: this.sortingStartIndex,
|
||||
_repeater_new_index: endIndex
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
callback($item, container, callback, event)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue