• TPF1

    (@tpf1)


    Hi guys!

    I have created a plugin that creates a widget.
    On the widget form i am using jquery functions that i load using wp_enqueue_script.

    When adding the widget on a sidebar, everything works. Then when i press the Save button, my jquery brakes and functions are not working anymore… I need to refresh the widget page in order to load the js again…

    Am I doing something wrong ? is there any solution so my js file is loaded again when pressing the Save button?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter TPF1

    (@tpf1)

    Anyone ?
    Note that i use color picker on my widget which i call by using:

    $(‘.color-picker’).wpColorPicker();

    The color picker is working great but once i save the widget, it disappear..

Viewing 1 replies (of 1 total)

The topic ‘Widget save brake jQuery’ is closed to new replies.