yeah, i had to do this exact change for a function in my code to make it work again..
there's also an api endpoint i made that does not work anymore since like beta 5 or 4 which might be connected to this? dunno
I've found the solution!
When necessary, I used XF.MenuWatcher.preventDocClick() to disable the closure of menus - and then use XF.MenuWatcher.allowDocClick() to enable the function again. This allows you to click on elements that are not part of the menu and placed outside of them (y)
Hey there!
Let's say I have a menu somewhere. And as you know, if you click on another element that isn't the menu, the menu will be closed.
Is there a way to avoid this? I found the data-menu-closer attribute but don't know if that is related to my problem..
(just to elaborate a bit: I want...
Hey there!
I'm working on a controller right now and inside one of the functions I want to send params to an action of a different controller (for example "actionFind") and receive the data in the first controller - how can I make this work?
(I do not want to copy an entire function over from...
If we don't want to use the widget but still need trending threads for a single forum for example.. are there any new finder methods or anything we can look at now? Just curious if we can use the trending threads functionality outside of the widget
And yeah, this is an amazing addition that...
Whenever I try to manually merge an outdated template and select to keep my custom changes, the "Merge" button stays disabled (even if all conflicts have been manually resolved)
Hey there!
The JS function Inserter uses slide up/down animations when removing old content + loading new content
What would be the best and quickest way to replace both of them? Overwriting the show/hide methods of the inserter?
Cheers!
Well I'll be damned!
This pretty much solves it: I've used icons from the current default FA website (which is FA6) and because a lot of icons still worked with the old approach using the <i>-tags, I thought everything was fine. I'm now switching over to 5 (and using this search for anybody...
Hey y'all,
I have a template where each icon is basically a macro, for instance:
<xf:macro name="paper">
<xf:fa icon="fa-solid fa-newspaper" />
</xf:macro>
Now, in the case of this icon, when I changed "fa-solid" to "fas", the icon loads - but for some reason it's less of a square like...
It says cache rebuilding has been successful but nothing has changed.. 🫠
Since my usage of icons might be weird, I just put a <xf:fa>-tag with icon on a random template (forum_view) to see if it would work/load and I rebuilt the cache for icon usage again but nothing is changing (fwiw, I'm on...
This is what I've been looking for - but it doesn't seem to work for me (unless I put it in a setTimeout wrapper) which is probably due to my code. Either way, thanks for the quick and detailed explanation!!
So I'm a bit confused: XF.proxy doesn't need an event - yet the suggested replacement is XF.on which requires an event like 'click' etc.
I have to be missing something; how can I proxy a function without having to mention any events?
Welp lol, now that I have taken care of my templates, the icons are gone (likely due to the removal of that FontAwesome JS file iirc)
The way I use icons is to save them as macros in a template so that I can change them all the time without a major hassle. I saw this error pop up on one of my...
You probably know the tabs, often appearing like this in code
<ul class="tabPanes">
<li data-href="{{ link('...') }}" role="tabpanel" aria-labelledby="details">
<div class="blockMessage">{{ phrase('loading...') }}</div>
</li>
</ul>
Now here's a new weird behaviour: let's say...