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
File diff suppressed because one or more lines are too long
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ body {
|
|||
box-shadow: 0 0 0 1rem $color-border, 0 0 0 100rem rgba($color-text,.05) inset;
|
||||
}
|
||||
&.small {
|
||||
padding:5rem;
|
||||
padding:8rem;
|
||||
padding-right: 15rem;
|
||||
}
|
||||
&.disabled {
|
||||
|
|
@ -312,9 +312,12 @@ body {
|
|||
position: absolute;
|
||||
right:0rem;
|
||||
top:0rem;
|
||||
padding:5rem;
|
||||
padding:8rem;
|
||||
color:$color-text-fade;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
color:$color-text;
|
||||
}
|
||||
}
|
||||
> div {
|
||||
box-shadow: 0 0 0 1rem $color-border;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue