mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Fix #1338 reorder collections don't work
This commit is contained in:
@@ -80,7 +80,7 @@
|
|||||||
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), {
|
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), {
|
||||||
content:datas.msg
|
content:datas.msg
|
||||||
});
|
});
|
||||||
$('#table-order').before(html);
|
$('#table-order').insertBefore(html);
|
||||||
},
|
},
|
||||||
complete : function() {
|
complete : function() {
|
||||||
$this.attr('disabled', false);
|
$this.attr('disabled', false);
|
||||||
@@ -91,13 +91,13 @@
|
|||||||
|
|
||||||
function moveUpItem(select){
|
function moveUpItem(select){
|
||||||
select.find('option:selected').each(function(){
|
select.find('option:selected').each(function(){
|
||||||
$(this).before($(this).prev());
|
$(this).insertBefore($(this).prev());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function moveDownItem(select){
|
function moveDownItem(select){
|
||||||
select.find('option:selected').each(function(){
|
select.find('option:selected').each(function(){
|
||||||
$(this).after($(this).next());
|
$(this).insertAfter($(this).next());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user