[#33067] JText::script is not loading Joomla core.js#3078
[#33067] JText::script is not loading Joomla core.js#3078piotrmocko wants to merge 6 commits intojoomla:stagingfrom piotrmocko:patch-13
Conversation
JText::script should always load system JavaScript file: core.js which has declaration of function: Joomla.JText._ which should be used in JavaScript files for translating strings. If Mootools is not loaded or some other resource which is loading core.js then you will get an error trying to use: Joomla.JText._
|
If you do use |
|
I have just changed as you have proposed. That is better solution. |
|
you understood me wrong 😉 I mean other, |
|
Currently, core.js has a dependancy on mootools. So you should never load core.js without mootools. Thus currently the way to load it is |
|
Now I have made it incorrect. I am loading core.js to late. We can remove this part of code |
|
I have just updated with all yours suggestions. |
|
Merged to |
|
@wilsonge mentions this is not present in staging or 3.4-dev. Re-opening to ensure it's merged. |
|
@piotrmocko Can you update the PR to use the new |
Compatibility with Joomla 3.3
|
I have just updated code to use new core dependence |
|
Merged this into staging again :) Thanks again! |
JText::script should always load system JavaScript file: core.js which has declaration of function: Joomla.JText._ which should be used in JavaScript files for translating strings. If Mootools is not loaded or some other resource which is loading core.js then you will get an error trying to use: Joomla.JText._
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=33067