-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[#29641] Very slow of JavaScript performance in Isis... (2) #2018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Please restore the |
ah, yes, you are right ... I missed this |
This one will essentially remove chosen from the whole backend as currently, the class "advancedSelect" isn't used anywhere. If you're going to change the call from |
@Bakual that was the first part of the plan, delete all :) |
@Fedik The second part is by far the harder part ;-)
@betweenbrain Since he did it as a template parameter, the frontend would have to be taken care by the frontend template. But here it would be a backward compatibility break for all existing templates which would have to be updated to include the chosen call if they wish to support it. Realistically speaking I don't think that is going to be accepted for the frontend. |
@infograf768 have a more details? cause here no any changes for |
@Fedik |
Sounds like an error in an XML file to me. |
yes, looks like the class duplication in mod_articles_news.xml .. I will check more |
we have the error in 2 modules: |
ok, duplication fixed ... think it happened during one of the sync @infograf768 whether was offered some alternative? |
@Fedik A solution that was thrown into the room was using JLayouts instead to render the select boxes. And then use overrides for different uses. |
http://docs.joomla.org/Layout_Overrides_in_Joomla Roberto's JLayout article is also on the JDocs of course :) |
@wilsonge That's not the one about JLayouts 😄 |
@Bakual can you explain how I could, for example, create a module and ship it so Chosen.js isn't applied to it? |
Can we then merge it into a 3.3.0 branch then? There is supposed to be one created for exactly these types of situations. |
@betweenbrain I would have to look into JLayout again, but I think I read you can specify layouts "overrides" for specific extensions. Also I think Roberto has a PR open which would allow to specify an alternate layout for a field in the XML. This one would probably solve your issue with the module as well. |
@Bakual to be honest, I'm not sure if I agree with the idea of using JLayouts and overrides to handle this, but I am open to exploring it as I may not fully understand the implementation for solving the issue. I do feel that the current approach of using a class like |
@betweenbrain I agree that we MUST change the calls from |
Would it be possible to JLayout, within the template, to enable or disable Best, Matt Thomas Sent from mobile. Please pardon any typos or brevity.
|
I don't know what exactly is possible with JLayouts. That is something Roberto would need to answer. |
Ask and ye shall receive. 3.3-dev branch open for business. On Sat, Dec 21, 2013 at 7:07 AM, Matt Thomas [email protected]:
|
as I understand, with JLayouts it should looks like:
|
|
Once there is an agreement on the way to proceed and we are sure we are B/C, sure. |
@infograf768 What is the B/C issue? I don't think that has ever been stated. |
@infograf768 can you tell us what the B/C is? |
I'm going to throw this on the frontenders working group to unblock it with their guidance |
Closed as per the comment in the tracker |
@phproberto if you do tackle this with the frontenders group, please also see #3721 |
previous pull #1302
I made some updates based on @Bakual idea about apply chosen only for
.advancedSelect
so here I removed
JHtml::_('formbehavior.chosen', 'select');
from alltmpl/
, and added options to the template for allow to enable/disableJHtml::_('formbehavior.chosen');
... that will work only for<select>
with class.advancedSelect
and I made new pull because previous have conflicts....
Links: