? Error

User tests: Successful: Unsuccessful:

avatar AshanFernando
AshanFernando
18 Sep 2013

Under GSoC MooTools to jQuery project, this PR removes the MooTools dependencies in media/com_finder/js/indexer.js file and removing hilighter.js and finder.js which is not used within the CMS.

Feature Request Item:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32042&start=575

avatar AshanFernando AshanFernando - open - 18 Sep 2013
avatar chrisdavenport
chrisdavenport - comment - 18 Sep 2013

Isn't highlighter.js used for smart search search results? Or has it been replaced by something else?

avatar AshanFernando
AshanFernando - comment - 18 Sep 2013

Yes its used but there are two duplicates.
media/com_finder/js/highlighter.js (removed since its not used)
media/system/js/highlighter.js (has both minified version and development version which is used in cms)

avatar chrisdavenport
chrisdavenport - comment - 18 Sep 2013

Ahh, okay. That's fine then. Thanks.

avatar mbabker mbabker - reference | - 9 Mar 14
avatar mbabker
mbabker - comment - 9 Mar 2014

Merged to 3.3-dev

avatar mbabker mbabker - close - 9 Mar 2014
avatar chivitli
chivitli - comment - 20 Mar 2014

@AshanFernando, @mbabker

Is part of 3.3 project changing autocompleter.js to jQuery as well, or it stays on mootools in 3.5 series?

avatar Bakual
Bakual - comment - 20 Mar 2014

Is part of 3.3 project changing autocompleter.js to jQuery as well, or it stays on mootools in 3.5 series?

We want to change everything to jQuery so Mootools can be removed in 4.0. I'm currently not aware of an existing PR to change that particular JavaScript code. So if you can, rewrite it and do a PR for it. That would be appreciated :smile:

avatar AshanFernando
AshanFernando - comment - 20 Mar 2014

I hope you are referring to the following https://github.com/joomla/joomla-cms/blob/staging/media/com_finder/js/autocompleter.js file. What are the usage areas of this library?
I could check on this during the weekend if its a high priority modification removing MooTools for Joomla 4.0

avatar chivitli
chivitli - comment - 20 Mar 2014

Mod finder is using it for autocomplete when you type something in the
search input field. I don't know if it's used for something else as well, I
will check when I am in front of the computer, but I know that there are
two improvements which we could add to it. One is to move is its inclusion
to module template so it can be overridden, and the other to choose the
minimum number of letters needed before autocomplete is activated, it's
hardcoded at the moment
On 20 Mar 2014 09:50, "Ashan Fernando" notifications@github.com wrote:

I hope you are referring to the following
https://github.com/joomla/joomla-cms/blob/staging/media/com_finder/js/autocompleter.jsfile. What are the usage areas of this library?
I could check on this during the weekend if its a high priority
modification removing MooTools for Joomla 4.0


Reply to this email directly or view it on GitHub#2016 (comment)
.

avatar Bakual
Bakual - comment - 20 Mar 2014

One is to move is its inclusion to module template so it can be overridden

It's loaded here:

Both places are in the layout file, which can be overriden by templates. And the call uses JHtmlScript which also allows to override it. So this is is not an issue at all currently. Or do I miss something?

avatar chivitli
chivitli - comment - 20 Mar 2014

Well, I accept that I was too sleepy when I looked at 6am this morning :) I
will double check in the afternoon when I am back
On 20 Mar 2014 10:21, "Thomas Hunziker" notifications@github.com wrote:

One is to move is its inclusion to module template so it can be overridden

It's loaded here:
https://github.com/joomla/joomla-cms/blob/staging/modules/mod_finder/tmpl/default.php#L128and
https://github.com/joomla/joomla-cms/blob/staging/components/com_finder/views/search/tmpl/default_form.php#L61
Both places are in the layout file, which can be overriden by templates.
And the call uses JHtmlScript which also allows to override it. So this is
is not an issue at all currently. Or do I miss something?


Reply to this email directly or view it on GitHub#2016 (comment)
.

avatar chivitli
chivitli - comment - 20 Mar 2014

Yeah, you are right, it was too early when I looked...

avatar AshanFernando
AshanFernando - comment - 21 Mar 2014

Thanks for the info! I will check this during the weekend :)

avatar PAlexcom PAlexcom - reference | - 21 Mar 14
avatar chivitli
chivitli - comment - 4 Apr 2014

@AshanFernando

Did you maybe have time to check this?

avatar AshanFernando
AshanFernando - comment - 5 Apr 2014

In the autocomplete.js several Mootools classes are converted to jQuery
which includes "Observer", "OverlayFix", "Autocompleter.Request",
"Autocompleter.Request.JSON", "Autocompleter.Request.HTML".

"Autocompleter" class is yet to be converted.

On Fri, Apr 4, 2014 at 5:06 PM, Marko D notifications@github.com wrote:

@AshanFernando https://github.com/AshanFernando

Did you maybe have time to check this?

Reply to this email directly or view it on GitHub#2016 (comment)
.

*Regards, *

avatar chivitli
chivitli - comment - 5 Apr 2014

Sounds good, thanks ofr the update!

avatar Bakual Bakual - reference | - 12 May 14
avatar laoneo
laoneo - comment - 27 Jul 2014

Any chance for this to make it into Joomla 3.4? What needs to be done?

avatar Bakual
Bakual - comment - 27 Jul 2014

This PR is already merged into the 3.4 branch.

Add a Comment

Login with GitHub to post a comment