Jump to content

Button onclick event doesn't work after reopening plugin config page


Anthony Musgrove
Go to solution Solved by Luke,

Recommended Posts

Anthony Musgrove

I'm having an issue that I can't figure out, which I am hoping someone can point me in the right direction.

 

The plugin BETA dll is : https://github.com/AnthonyMusgrove/Emby-ScripterX/blob/master/EmbyScripterX.dll

 

I've added the plugin 'actions' page to the Advanced menu of the server dashboard.

 

The first time you open the 'Actions' tab/page, the + (add) button on each section works correctly - and the event handler is shown under event handlers.

 

However, go to Community tab, then back to Actions, and the event handler is removed (even though I am readding them), and doesn't function anymore.

 

I have been pulling my hair out regarding this all afternoon

 

thank you,

Anthony

Link to comment
Share on other sites

  • Solution

make sure all uses of querySelector are scoped underneath your current page and not within the entire document.

  • Like 1
Link to comment
Share on other sites

Anthony Musgrove

Thank you mate, this solved my issue immediately.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...