Argon-Dokuwiki-Template icon indicating copy to clipboard operation
Argon-Dokuwiki-Template copied to clipboard

jQuery(...).perfectScrollbar is not a function

Open bedo2991 opened this issue 4 years ago • 6 comments

In the mobile view, the menu-expand icon does not work. Dokuwiki: Release rc-2020-06-09 "Hogfather" RC3

bedo2991 avatar Jul 10 '20 16:07 bedo2991

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.

IceWreck avatar Jul 10 '20 16:07 IceWreck

Done

IceWreck avatar Jul 11 '20 17:07 IceWreck

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()

bedo2991 avatar Jul 12 '20 07:07 bedo2991

++ 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

detoxhby avatar Jul 28 '20 12:07 detoxhby

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.

maroessler avatar Feb 25 '21 23:02 maroessler

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 () {

jacksitlab avatar Jun 12 '21 08:06 jacksitlab