User tests: Successful: Unsuccessful:
This PR converts the form validation on com_languages to use plain jquery (no mootools call on every form).
Also NO MORE INLINE SCRIPTS!
If no javascript errors are logged in your browser and the functionality remains the same your test is a pass in any other case please report the errors here
Please also check these:
administrator/index.php?option=com_checkin should demonstrate multiselect without mt
administrator/index.php?option=com_users&view=mail should demonstrate form sent and validate without mt
administrator/index.php?option=com_modules should demonstrate multiselect and combobox without mt
http://localhost/administrator/index.php?option=com_admin&view=sysinfo should demonstrate highlighter.js without mt
Logout and log in to demonstrate the use of noframes without mt.
Labels |
Added:
?
|
Category | ⇒ | JavaScript |
Status | Pending | ⇒ | Ready to Commit |
Moving to RTC as we have 2 successful tests.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5046.
Labels |
Added:
?
|
@phproberto can you review this dgt41@82b6a29
Creating an Override, it is OK. However, when the same page is accessed after saving, it loads the Override and generates this error:
SyntaxError: syntax error
var expired = ;
index.p...SERNAME (line 37, col 18)
The error is coming from here:
$expired = ($this->state->get("cache_expired") == 1 ) ? '1' : '';
var expired = ' . $expired . ';
@anibalsanchez stupid mistake, I pushed a correction, sorry about that
I was merging your PRs but I totally agree with @Fedik here:
We should try to get as much code in plain JS as possible. I just checked it and we have some jQuery code inside core.js
(and it makes jQuery required) but that's an error IMO. Probably we won't remove jQuery until v4.0 but we should keep it clean and independent.
In fact we officially support Mootools and jQuery and using jQuery on core makes it mandatory for everybody.
@phproberto You want me to remove all the jQuery(document).ready(…);
from all the functions not mandatory to have it?
Can do that! gimme some time...
The most important part is not to tie core to other libraries and do not transmit that to other developers as something recommended.
In our code we are loading jQuery and that's done in our own views so that wouldn't be a big problem. But yes, I'd like to see core not mixed with jQuery.
I've created an issue for the existing jQuery code in core.js
#5254
Dammit for the closed ones the changes don’t come thru
Yes they are now merged so we need a new PR for that :(
Shall I do it in one PR or break it down for every component?
I think I cleared the superfluous jQuery calls wherever not necessary!
Thanks!! I'll test it ASAP. I think it's easy because all the toolbar buttons fire them. I'll also add a list of views to test.
Guys, what a great job! I'm ready to test whatever you need. My small contribution...
@smanzi we can help @phproberto with a test #5255, but also I removed some redundant jquery all over those requests...
Yep, Sergio those are all backend
Actually if you see the last commit in each of all these you will realize that i just deleted 2 lines
jQuery(document).ready(function() {
and
});
So basically is not that bad as it seems
Yeah, but it is always better be safe than sorry... I'll give a run on all of them...
@phproberto This is still open...
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-30 03:13:30 |
@infograf768 You're right! Sorry, I didn't test that view; I tried installing a new language, but that is not com_languages but com_installer
Is it normal that when I first try to install a new language I find the available languages list populated only by the following?
Albanian
Bahasa Indonesia
Bosnian
EnglishCA
Finnish
FrenchCA
Montenegrin
Portuguese Brazil
Serbian Cyrillic
Serbian Latin
Sinhala
Spanish
Swahili
Tamil
Thai
Turkish
Ukrainian
Uyghur
Vietnamese
Welsh
I find it confusing... I would expect either all available languages or none at all...
Please click on "Find languages". It solves this issue. No idea why we get a limited list. I even get a pkg_weblinks.xml sometimes in that list.
@infograf768 yep, I know I have to click "Find languages" but I find weird to have the languages list "somehow" populated...
Should I open an issue for this?
OMG, you are on... EVERYTHING!
I am on Skype
ah, OK!!
Labels |
Removed:
?
|
@dgt41
Buttons (Save -> Cancel) inactive in &view=override&layout=edit
OK in &view=language&layout=edit