mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
close modal on error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user