Closed (outdated)
Project:
Token
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
23 Feb 2013 at 22:47 UTC
Updated:
1 Nov 2025 at 14:34 UTC
Jump to comment: Most recent
Due to #1859452: Dialog loads default theme CSS breaking admin theme. we're now 'emulating' what is a normal AJAX system request to ensure that the same theme as the parent page is used in the dialog. Really we should attempt to convert the link clicking and the dialog replacement to the ajax system if possible.
Comments
Comment #1
damienmckennaIs this a duplicate of #1334456: Enable ajax on-demand loading of sub-trees in the Token help?
Comment #2
dave reidNope
Comment #3
hussainwebAs far as I can see, we are already using the core's AJAX system to load the dialog in 8.x-1.x. Is this issue for 7.x or am I missing something?
Comment #4
berdirWe are. But I'm not sure if the problems mentioned in the issue summary/related issue are really resolved now, possibly not. Would be good to confirm.
I didn't see anything break, but would be good to check what kind of additional libraries are loaded when opening the token browser. I guess it will be from the default theme. If that is the case, maybe we can solve it by passing along the theme as a GET argument and implement a theme negotiator to use that theme on that page?
Comment #5
berdirJust seen due to #2640086: Editor routes don't use the ajax_base_page theme negotiator that core has a theme negotiator for ajax requests built in, so it's likely that this just works now. Yay D8. Lets confirm and then close this.
Comment #6
juampynr commentedIs there still something to do here?
Comment #7
juampynr commentedWe are using
use-ajaxfor the token browser link. As far as I know, there is nothing else that we should do to improve this. While reading the documentation, I saw that it is a good practice to havenojsin the path so the server can respond appropriately. However, when I tested it with JavaScript disabled, I did not see a difference.Shall we close this issue?
Comment #8
berdirYeah, I think we can close this. Or actually, move back to 7.x.
Comment #9
apmsooner commented