Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
13 Nov 2014

Executive summary

This PR converts the form validation on com_weblinks to use plain jquery (no mootools call on every form).
Also NO MORE INLINE SCRIPTS!

Testing

  1. Apply first PR #4888 (!important)
  2. go to https://raw.githubusercontent.com/dgt41/weblinks/jquery_1/src/com_weblinks/admin/views/weblink/tmpl/edit.php
    copy all and paste it to
    /administrator/components/com_weblinks/views/weblink/tmpl/edit.php

Also go to https://raw.githubusercontent.com/dgt41/weblinks/jquery_1/src/com_weblinks/admin/views/weblinks/tmpl/default.php
copy all and paste it to
/administrator/components/com_weblinks/views/weblinks/tmpl/edit.php
3. In the admin area go to com_weblinks and try to submit any form.

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.

avatar dgt41 dgt41 - open - 13 Nov 2014
avatar anibalsanchez
anibalsanchez - comment - 13 Nov 2014

How can it be applied in a plain 3.3.6 ?

avatar dgt41
dgt41 - comment - 13 Nov 2014

@anibalsanchez Just overwrite those 2 files:
/administrator/components/com_weblinks/views/weblink/tmpl/edit.php
/administrator/components/com_weblinks/views/weblinks/tmpl/edit.php
with the ones from the joomla-extensions/weblinks PR

avatar smanzi
smanzi - comment - 13 Nov 2014

@test success

"A small step for a man, one giant leap toward the demise of MT" :stuck_out_tongue:

avatar anibalsanchez
anibalsanchez - comment - 14 Nov 2014

Manually patched, @test success

avatar dgt41
dgt41 - comment - 3 Dec 2014

@anibalsanchez @smanzi Can you retest this one? I removed the jquery .ready(), as it was requested for all these PR’s. If you test it in current staging just overwrite the two files touched here:

/administrator/components/com_weblinks/views/weblink/tmpl/edit.php
/administrator/components/com_weblinks/views/weblinks/tmpl/edit.php

Thanks and sorry for these extra tests

avatar anibalsanchez
anibalsanchez - comment - 3 Dec 2014

@test success, on the current staging with a build of the latest weblinks

avatar dgt41
dgt41 - comment - 31 Jan 2015

@roland-d @wilsonge Can somebody get this in?

avatar wilsonge
wilsonge - comment - 7 Feb 2015

@dgt41 i'm sorry for replying late on this one. I think the code in the second file can just be removed (see joomla/joomla-cms#5994) can you confirm (and remove if appropriate please)?

avatar dgt41
dgt41 - comment - 7 Feb 2015

@wilsonge This ain’t gonna work here as the plural view doesn’t implement the search tools button and thus the script is needed contrary to the category view, but for that there is #5994. I think that this feature (the search tools button) was introduced half baked and not side wide as there are many comments for unneeded filters etc…
Bottom line here, this is good to go as is!

No search tools buttons (js needed)
screen shot 2015-02-07 at 5 14 38

Search tools button (no js for ordering)
screen shot 2015-02-07 at 5 14 14

avatar wilsonge wilsonge - reference | - 8 Feb 15
avatar wilsonge wilsonge - merge - 8 Feb 2015
avatar wilsonge wilsonge - close - 8 Feb 2015
avatar dgt41 dgt41 - head_ref_deleted - 8 Feb 2015

Add a Comment

Login with GitHub to post a comment