fix reordering of collections from admin interface

This commit is contained in:
mike-esokia
2018-05-28 11:03:10 +04:00
committed by Mike Ng
parent 6527c8c9f7
commit c313c5316a
2 changed files with 6 additions and 6 deletions

View File

@@ -270,10 +270,10 @@
pub_wm: $this.val()
},
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
});
$this.closest('.action-block').prepend(html);
}));
}
});
});

View File

@@ -94,10 +94,10 @@
$this.prop('disabled',true);
},
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
});
$('#notification').html(html);
}));
AdminApp.LeftView.reloadTree('bases:bases', true);
},
complete : function() {