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 +1 -1
- package/static/lib/composer.js +9 -1
package/package.json
CHANGED
package/static/lib/composer.js
CHANGED
|
@@ -771,7 +771,15 @@ define('composer', [
|
|
|
771
771
|
drafts.removeDraft(postData.save_id);
|
|
772
772
|
|
|
773
773
|
if (data.queued) {
|
|
774
|
-
|
|
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'));
|