nodebb-plugin-composer-default 7.0.15 → 7.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "7.0.15",
3
+ "version": "7.0.16",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -771,7 +771,15 @@ define('composer', [
771
771
  drafts.removeDraft(postData.save_id);
772
772
 
773
773
  if (data.queued) {
774
- bootbox.alert(data.message);
774
+ alerts.alert({
775
+ type: 'success',
776
+ title: '[[global:alert.success]]',
777
+ message: data.message,
778
+ timeout: 10000,
779
+ clickfn: function () {
780
+ ajaxify.go(`/post-queue#${data.id}`);
781
+ },
782
+ });
775
783
  } else if (action === 'topics.post') {
776
784
  if (submitHookData.redirect) {
777
785
  ajaxify.go('topic/' + data.slug, undefined, (onComposeRoute || composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm'));