sortables lists fix (refresh cached position at sortstart)
&bigger items & hover effect on delete btn
This commit is contained in:
parent
7bcd5e4bcd
commit
c61cad7d24
3 changed files with 11 additions and 8 deletions
|
|
@ -180,7 +180,7 @@ module.exports.enable = function(){
|
|||
})
|
||||
}
|
||||
|
||||
list.sortable({forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
list.sortable({start:function(){$(this).sortable( "refreshPositions" )},forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
var prevIndex = $(ui.item).attr('data-index')
|
||||
var newIndex = $(ui.item).index()
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ module.exports.enable = function(){
|
|||
})
|
||||
}
|
||||
|
||||
list.sortable({forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
list.sortable({start:function(){$(this).sortable( "refreshPositions" )},forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
var prevIndex = $(ui.item).attr('data-index')
|
||||
var newIndex = $(ui.item).index()
|
||||
|
||||
|
|
@ -338,7 +338,7 @@ module.exports.enable = function(){
|
|||
})
|
||||
}
|
||||
|
||||
list.sortable({forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
list.sortable({start:function(){$(this).sortable( "refreshPositions" )},forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
var prevIndex = $(ui.item).attr('data-index')
|
||||
var newIndex = $(ui.item).index()
|
||||
|
||||
|
|
@ -379,7 +379,7 @@ module.exports.enable = function(){
|
|||
})
|
||||
}
|
||||
|
||||
list.sortable({forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
list.sortable({start:function(){$(this).sortable( "refreshPositions" )},forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
var prevIndex = $(ui.item).attr('data-index')
|
||||
var newIndex = $(ui.item).index()
|
||||
|
||||
|
|
@ -459,7 +459,7 @@ module.exports.enable = function(){
|
|||
})
|
||||
}
|
||||
|
||||
list.sortable({forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
list.sortable({start:function(){$(this).sortable( "refreshPositions" )},forcePlaceholderSize: true, items: '.sortables'}).on('sortupdate',function(e,ui){
|
||||
var prevIndex = $(ui.item).attr('data-index')
|
||||
var newIndex = $(ui.item).index()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue