Surveys content plugin probably missed Joomla JS structure changes
Surveys content plugin probably missed Joomla JS structure changes
Hello maverick
I just tried to lunch survey from article (content) plugin.
Unfortunately, "Please wait" gray box no disappeared after clicking on "Start survey" button.
Firefox Firebug reports:
"NetworkError: 404 Not Found - //cdn.shondalai.com/media/system/core.js"
In fact, there is no such file in that directory, but in //cdn.shondalai.com/media/system/js/core.js is :)
Second error:
TypeError: form.find(...).sortable is not a function cj.surveys.min.js (line 86, row 3)
After while of reverse engineering, I found modifications needed in
/plugins/content/surveys/surveys.php
Line 66 of this file was:
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/system/core.js');
Now, this line is different and another two lines also appears
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/system/js/core.js');
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/jui/js/jquery.ui.core.min.js');
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/jui/js/jquery.ui.sortable.min.js');
And survey from article plugin now works fine :)
Joomla 3.8.2
CS 4.5.5
PHP 5.6.30
Best regards,
Brand New