• Cromorama

    (@cromorama)


    Hi,

    Im developing a WP Widget and im using a JS Color picker in the backend.
    Everything works ok, the JS is enqued ok and the instances got correctly saved.

    Problem is when I save the changes on the Widget. This acction seems to “kill” the JS and stop working. I have to reload the page to get the JS working again.

    I looked for some information on this forums and Google but couldnt find a solution,

    Any ideas?

    Thank you very much

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Cromorama

    (@cromorama)

    I forgot to tell, I checked with FireBug and the JS file is still enqued and the trigger (“color” class into the input) is there.

    Is very disturbing cause there is no reason for not to work

    Thread Starter Cromorama

    (@cromorama)

    I “solve” the problem by using a javascript that triggers an action when the SAVE button event finished. So I launch the WPColorPicker and it looks like nothing happened but the true is this is not the best fix. I mean, it works but I will apreciate if somebody know the way to fix it properly.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Saving Widget kills JS file’ is closed to new replies.