Hide flag modal while flag is submitted
This commit is contained in:
parent
38fb727c00
commit
66d1cacdbd
|
@ -58,9 +58,11 @@ Discourse.FlagController = Discourse.ObjectController.extend(Discourse.ModalFunc
|
|||
|
||||
if (opts) params = $.extend(params, opts);
|
||||
|
||||
$('#discourse-modal').modal('hide');
|
||||
postAction.act(params).then(function() {
|
||||
flagController.send('closeModal');
|
||||
}, function(errors) {
|
||||
$('#discourse-modal').modal('show');
|
||||
flagController.displayErrors(errors);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue