Croatia Posted August 29, 2017 Share Posted August 29, 2017 Hello I am here to ask if there is anyway to edit IPB's Javascript files. (I would like to edit [data-ipsmenu]) Link to comment Share on other sites More sharing options...
Nathan Explosion Posted August 29, 2017 Share Posted August 29, 2017 In the database, core_javascript table. Link to comment Share on other sites More sharing options...
Daniel F Posted August 29, 2017 Share Posted August 29, 2017 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? Link to comment Share on other sites More sharing options...
Croatia Posted August 29, 2017 Author Share Posted August 29, 2017 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. Link to comment Share on other sites More sharing options...
BomAle Posted August 29, 2017 Share Posted August 29, 2017 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.