Fixed delete if sortable is active.
This commit is contained in:
parent
cceb87bc53
commit
ecdca2f202
1 changed files with 4 additions and 2 deletions
|
@ -292,7 +292,7 @@ class App.ControllerTable extends App.Controller
|
||||||
class: @class
|
class: @class
|
||||||
destroy: destroy
|
destroy: destroy
|
||||||
callbacks: @callbackAttributes
|
callbacks: @callbackAttributes
|
||||||
sortable: @dndCallback
|
sortable: @dndCallback
|
||||||
)
|
)
|
||||||
|
|
||||||
# convert to jquery object
|
# convert to jquery object
|
||||||
|
@ -308,9 +308,11 @@ class App.ControllerTable extends App.Controller
|
||||||
for name, item of @bindCol
|
for name, item of @bindCol
|
||||||
if item.events
|
if item.events
|
||||||
position = 0
|
position = 0
|
||||||
|
if @dndCallback
|
||||||
|
position += 1
|
||||||
if @checkbox
|
if @checkbox
|
||||||
position += 1
|
position += 1
|
||||||
hit = false
|
hit = false
|
||||||
|
|
||||||
for headerName in @headers
|
for headerName in @headers
|
||||||
if !hit
|
if !hit
|
||||||
|
|
Loading…
Reference in a new issue