Jump to content

How to edit Javascript

Featured Replies

Posted

Hello I am here to ask if there is anyway to edit IPB's Javascript files. (I would like to edit [data-ipsmenu])

In the database, core_javascript table.

Please don't do this:) Editing only the table won't be enough, you'll also need to edit the xml files and also rebuild the automatically created js files, but as I said, PLEASE don't do this;)
Could you explain what you're trying to achieve?

  • Author
1 hour ago, Daniel F said:

Please don't do this:) Editing only the table won't be enough, you'll also need to edit the xml files and also rebuild the automatically created js files, but as I said, PLEASE don't do this;)
Could you explain what you're trying to achieve?

 

I am trying to make my theme a little bit smoother, I mean adding animations etc. Ill try to find other way, messing with database is not always a great idea. Topic can be closed.

You can edit a template OR build a plugin to create a mixin for controllers (I don't know if is possible extend a "module" as for controller) into this way you can manage/override animation.

mixin guides:

controllers:

For your specific needs I suggest to create a js controller and add data-controllers="myCustomMenu" into the elements menu you would change (data-ipsMenu) and listen events emitted by ips.ui.menu (menuOpened, menuClosed and menuItemSelected).

I don't know now how the ips.ui.menu events are emitted but this is a good start for who would try to manage itself :thumbsup:

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.