mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-24 21:13:54 -04:00
Hide flag modal while flag is submitted
This commit is contained in:
parent
38fb727c00
commit
66d1cacdbd
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue