nodebb-theme-harmony 1.0.0-beta.21 → 1.0.0-beta.22
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
package/public/harmony.js
CHANGED
|
@@ -37,7 +37,7 @@ $(document).ready(function () {
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
function setupMobileMenu() {
|
|
40
|
-
require(['api'], function (api) {
|
|
40
|
+
require(['hooks', 'api', 'navigator'], function (hooks, api, navigator) {
|
|
41
41
|
$('[component="sidebar/toggle"]').on('click', async function () {
|
|
42
42
|
const sidebarEl = $('.sidebar');
|
|
43
43
|
sidebarEl.toggleClass('open');
|
|
@@ -49,6 +49,9 @@ $(document).ready(function () {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
$(window).trigger('action:sidebar.toggle');
|
|
52
|
+
if (ajaxify.data.template.topic) {
|
|
53
|
+
hooks.fire('action:navigator.update', { newIndex: navigator.getIndex() });
|
|
54
|
+
}
|
|
52
55
|
});
|
|
53
56
|
});
|
|
54
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<a href="{config.relative_path}/groups/{./slug}" class="badge rounded-1 text-uppercase text-truncate text-decoration-none" style="max-width: 150px;color:{./textColor};background-color: {./labelColor};"><i class="fa {{{ if ./icon }}}{./icon}{{{ if ./userTitle}}} me-1{{{ end }}}{{{else}}}hidden{{{ end }}}"></i><span class="badge-text">{{{ if ./userTitle }}}{./userTitle}{{{ end }}}</span></a>
|
|
1
|
+
<a href="{config.relative_path}/groups/{./slug}" class="badge rounded-1 text-uppercase text-truncate text-decoration-none" style="max-width: 150px;color:{./textColor};background-color: {./labelColor};"><i class="fa {{{ if ./icon }}}{./icon}{{{ if ./userTitle}}} me-1{{{ end }}}{{{else}}}hidden{{{ end }}}"></i><span class="badge-text align-text-bottom">{{{ if ./userTitle }}}{./userTitle}{{{ end }}}</span></a>
|