? Success

User tests: Successful: Unsuccessful:

avatar PhocaCz
PhocaCz
8 Aug 2014

See tracker 34042 on joomlacode.org:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=34042&tracker_id=34042

In short: javascript function includes "form" parameter but such is not sent by php sort function, which limits the setting of form name/id.

avatar PhocaCz PhocaCz - open - 8 Aug 2014
avatar jissues-bot jissues-bot - change - 8 Aug 2014
Labels Added: ? ?
avatar jissues-bot jissues-bot - change - 8 Aug 2014
Title
Update grid.php
[#34042] Update grid.php
avatar jissues-bot jissues-bot - change - 8 Aug 2014
Title
Update grid.php
[#34042] Update grid.php
avatar zero-24
zero-24 - comment - 8 Aug 2014

Thanks @PhocaCz can you also add a @param description to the doc block?

avatar PhocaCz
PhocaCz - comment - 8 Aug 2014

Added @param

Found that the javascript function takes as an argument form element not id of element, so added pull request to change the javascript: PhocaCz@391e41c

avatar PhocaCz PhocaCz - change - 8 Aug 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-08-08 15:03:36
avatar PhocaCz PhocaCz - close - 8 Aug 2014
avatar PhocaCz PhocaCz - change - 8 Aug 2014
Status Closed New
avatar PhocaCz PhocaCz - reopen - 8 Aug 2014
avatar PhocaCz PhocaCz - change - 8 Aug 2014
Status New Closed
Closed_Date 2014-08-08 15:03:36 2014-08-08 15:03:42
avatar PhocaCz PhocaCz - close - 8 Aug 2014
avatar PhocaCz PhocaCz - change - 8 Aug 2014
Status Closed New
avatar PhocaCz PhocaCz - reopen - 8 Aug 2014
avatar zero-24
zero-24 - comment - 8 Aug 2014

@PhocaCz if we change the core-uncompressed.js we also need to update the core.js with this changes.

avatar PhocaCz
PhocaCz - comment - 8 Aug 2014

Hi, yes, core.js needs to be changed - not sure how this works, but I thought, core.js is automatically converted from core-uncomressed.js.

Anyway the patch is working Ok when testing but of course it is not a clean solution, because the "form" as parameter in the javascript function in fact is not clearly defined - it can be an element or string. I think, it is better to have the parameter as a string as you can get the element every time you need in the function body. Now you have problems to send the element as parameter (e.g. when using inline javascript - for example: grid.php). It is better to send the name which then becomes element by getelementbyid function. Unfortunately changing it to string and making it easier and cleaner (from my point of view) can cause backward compatibility issues, so the patch is made to not break the backward compatibility.

Jan

avatar Bakual
Bakual - comment - 8 Aug 2014

Hi, yes, core.js needs to be changed - not sure how this works, but I thought, core.js is automatically converted from core-uncomressed.js.

We don't have an automatic compression yet. You just manually compress it using your favorite tool and add it to the PR.

avatar PhocaCz
PhocaCz - comment - 8 Aug 2014

Aha, please can you let me know some compress tool - I don't have any experiences regarding compressing :-(

Thank you, Jan

avatar Bakual
Bakual - comment - 8 Aug 2014

I think last time I used http://refresh-sf.com/yui/. But there are at least hundreds of them :smile:
https://www.google.ch/search?q=js+compress+online#q=js+compressor+online

avatar PhocaCz
PhocaCz - comment - 16 Aug 2014

Hi, thank you for the link, sorry for delay:
#4121

avatar nicksavov nicksavov - change - 21 Aug 2014
Labels Removed: ?
avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
avatar brianteeman brianteeman - change - 2 Sep 2014
Category JavaScript
avatar phproberto
phproberto - comment - 6 Sep 2014

Please check #4236 which contains initial contribution + some optimisations & compressed file.

avatar phproberto phproberto - change - 6 Sep 2014
Status Pending Closed
Closed_Date 2014-08-08 15:03:42 2014-09-06 19:26:51
avatar phproberto phproberto - close - 6 Sep 2014

Add a Comment

Login with GitHub to post a comment