Question about reworking the nodebb-plugin-charts plugin.
-
@Kitten That plugin is 10 years old, and highly unlikely to work with the latest version of NodeBB. The last commit from svandecappelle was 10 years ago, and there's a high probability that specific plugin has been abandoned.
-
-
You need to move the script tag to a separate js file, take a look at the quickstart plugin and how it includes client side js files. What you need to do is call $.jqplot in a client side js file instead of embedding it into each post.
-
@baris In the plugin.json file I added the following lines:
"scripts": [
"static/lib/main1.js"
],In the main1.js file I added the following functions:
- $(document).ready(function () {
- $(window).on('action:ajaxify.end', function(data) {
and they are not called.
What could be the problem?
Copyright © 2024 NodeBB | Contributors