Eckstein
Member
Posted 9 months ago #
I have a few plugins that use javascript in the admin plugins page for their settings, so that the user doesn't have to leave that page to change them.
It seems since I updated to the new StatPress V it for some reason kills this functionality.
Everything else seems to be working fine (better actually!) it's just this little issue that I've found.
One plugin, specifically, that this is affecting is WP Maintenance Mode
http://wordpress.org/extend/plugins/statpress-visitors/
Eckstein
Member
Posted 9 months ago #
OK, after further using on the admin area, it seems like the plugin is also disabling the fly-out menus on the back end. That's a bigger problem.
Thanks for listening!
Yep, its also affecting some functions on post edit pages - word count not working, can't add new category etc.
Great looking update to this plugin - thanks - but be good to see a fix for this.
holospirit
Member
Posted 9 months ago #
Error: TypeError: jQuery(".datepicker").datepicker is not a function
possible reason:
wp_enqueue_script('jquery-ui-datepicker', STATPRESS_V_PLUGIN_URL . '/js/jquery.ui.datepicker.min.js', array ('jquery', 'jquery-ui-core'));
-> jquery.ui.datepicker.min.js is only enqued in stats-vis - but the function is called always
solution:
add line ~177 admin/lic_admin.php:
if (isset($_GET['page']) && strpos($_GET['page'], "statpress-visitors") !== false) {
and a closing } after the script call
Eckstein
Member
Posted 9 months ago #
Thank you for the update today! This seems to have fixed the issue. This is a great plugin, thanks for all your hard work.