Merge pull request #2612 from mike-esokia/PHRAS-2064_fix_collection_order

PHRAS-2064 fix reordering of collections from admin interface
This commit is contained in:
Nicolas Maillat
2018-05-28 10:21:26 +02:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -270,10 +270,10 @@
pub_wm: $this.val() pub_wm: $this.val()
}, },
success: function(datas) { success: function(datas) {
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), { var html = _.template($("#alert_" + (datas.success ? "success" : "error") + "_tpl").html());
$this.closest('.action-block').prepend(html({
content:datas.msg content:datas.msg
}); }));
$this.closest('.action-block').prepend(html);
} }
}); });
}); });

View File

@@ -94,10 +94,10 @@
$this.prop('disabled',true); $this.prop('disabled',true);
}, },
success : function(datas) { success : function(datas) {
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), { var html = _.template($("#alert_" + (datas.success ? "success" : "error") + "_tpl").html());
$('#notification').html(html({
content:datas.msg content:datas.msg
}); }));
$('#notification').html(html);
AdminApp.LeftView.reloadTree('bases:bases', true); AdminApp.LeftView.reloadTree('bases:bases', true);
}, },
complete : function() { complete : function() {