nodebb-plugin-composer-default 10.1.3 → 10.1.5
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
|
@@ -79,10 +79,8 @@ define('composer/formatting', [
|
|
|
79
79
|
buttons.forEach((btn) => {
|
|
80
80
|
fileForm
|
|
81
81
|
.before(`
|
|
82
|
-
<li class="
|
|
83
|
-
<
|
|
84
|
-
<i class="${btn.iconClass}"></i>
|
|
85
|
-
</a>
|
|
82
|
+
<li data-format="${btn.name}" title="${btn.title || ''}" href="#" class="btn btn-sm btn-link text-reset position-relative" tabindex="-1">
|
|
83
|
+
<i class="${btn.iconClass}"></i>
|
|
86
84
|
</li>
|
|
87
85
|
`);
|
|
88
86
|
});
|
package/static/lib/composer.js
CHANGED
|
@@ -426,7 +426,7 @@ define('composer', [
|
|
|
426
426
|
};
|
|
427
427
|
|
|
428
428
|
async function getSelectedCategory(postData) {
|
|
429
|
-
if (ajaxify.data.template.category) {
|
|
429
|
+
if (ajaxify.data.template.category && parseInt(postData.cid, 10) === parseInt(ajaxify.data.cid, 10)) {
|
|
430
430
|
// no need to load data if we are already on the category page
|
|
431
431
|
return ajaxify.data;
|
|
432
432
|
} else if (parseInt(postData.cid, 10)) {
|