churchthemes / church-theme-framework

A library of code useful for developing church WordPress themes that use the Church Content plugin.
https://churchthemes.com/guides/developer/framework/
GNU General Public License v2.0
31 stars 13 forks source link

make sure ctfw_init_widget_colorpicker is called with an jQuery-Object #13

Closed mi-roh closed 7 years ago

mi-roh commented 7 years ago

Some Plugins trigger widget-added/widget-updated without passing Data. Thats not nice written, but quit popular. In js/admin-widgets.js you bind the function ctfw_init_widget_colorpicker to these events. The Function requires an parameter widget, that has to be an jQuery-object, that .find() can work. But it's null in this special case and fails. The hole Plugin-Page freezes.

stevengliebe commented 7 years ago

Thank you. I'll check this out when I have time, hopefully next week.

stevengliebe commented 7 years ago

This will be included in the next update. Thank you for contributing.