close modal on error

v1.18.x
Baris Soner Usakli 11 years ago
parent 7310fe82d3
commit 32adbc8c77

@ -503,6 +503,8 @@ define(['composer'], function(composer) {
moveBtn.on('click', function() {
socket.emit('topics.movePost', {pid: pid, tid: topicId.val()}, function(err) {
if(err) {
$('#topicId').val('');
moveModal.addClass('hide');
return app.alertError(err.message);
}

Loading…
Cancel
Save