Argon-Dokuwiki-Template
Argon-Dokuwiki-Template copied to clipboard
jQuery(...).perfectScrollbar is not a function
In the mobile view, the menu-expand icon does not work. Dokuwiki: Release rc-2020-06-09 "Hogfather" RC3
We fixed it here but I didn't update the dokuwiki templates listing. To fix it you can install the template from this repo or wait and Ill update the listing tomorrow.
Done
Thanks, now the button works, but I still get the error in the console:
-1 < navigator.platform.indexOf("Win") ? (jQuery(".wrapper .login-page, .register-page, .card").perfectScrollbar()
++ currently affecting multiple deployments
Any possible workaround for this? (seems like the plugin is missing)
There is the fix in upstream argon repo: https://github.com/creativetimofficial/argon-design-system/commit/5f9734af6aee0f637396285cf33e37ffc1bf9c28
Does anyone have a fix for this? I tried looking at the upstream fix but I am not familiar with javascript, so I am not really knowing what I'm doing.
I'm having this issue using Argon together with the Drawio plugin.
On my side this fix also hasn't worked I have removed the perfectscrollbar functionality enabled if windows detected
here my diff
diff --git a/public_html/lib/tpl/argon/assets/js/argon-design-system.min.js b/public_html/lib/tpl/argon/assets/js/argon-design-system.min.js
index 720b857..8b4da80 100644
--- a/public_html/lib/tpl/argon/assets/js/argon-design-system.min.js
+++ b/public_html/lib/tpl/argon/assets/js/argon-design-system.min.js
@@ -36,9 +36,7 @@ function debounce(t, o, r) {
n = null, r || t.apply(e, a)
}, o), r && !n && t.apply(e, a)
}
-} - 1 < navigator.platform.indexOf("Win") ? (jQuery(".wrapper .login-page, .register-page, .card").perfectScrollbar(), 0 != jQuery(".tab-content .table-responsive").length && jQuery(".table-responsive").each(function () {
- new PerfectScrollbar(jQuery(this)[0])
-}), $html.addClass("perfect-scrollbar-on")) : $html.addClass("perfect-scrollbar-off"), jQuery(document).ready(function () {
+} - 1 < $html.addClass("perfect-scrollbar-off"), jQuery(document).ready(function () {
jQuery('[data-toggle="tooltip"], [rel="tooltip"]').tooltip(), jQuery('[data-toggle="popover"]').each(function () {