mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed colorpicker;
This commit is contained in:
@@ -6,8 +6,9 @@ function um_admin_live_update_scripts() {
|
||||
});*/
|
||||
|
||||
jQuery('.um-adm-conditional').each(function(){jQuery(this).trigger('change');});
|
||||
|
||||
jQuery('.um-admin-colorpicker').wpColorPicker();
|
||||
if ( jQuery('.um-admin-colorpicker').length ) {
|
||||
jQuery('.um-admin-colorpicker').wpColorPicker();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -101,8 +101,9 @@ jQuery(document).ready(function() {
|
||||
/**
|
||||
WP Color Picker
|
||||
**/
|
||||
|
||||
jQuery('.um-admin-colorpicker').wpColorPicker();
|
||||
if ( jQuery('.um-admin-colorpicker').length ) {
|
||||
jQuery('.um-admin-colorpicker').wpColorPicker();
|
||||
}
|
||||
|
||||
/* /!**
|
||||
Select Dropdowns
|
||||
|
||||
@@ -286,7 +286,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
|
||||
* Load jQuery custom code
|
||||
*/
|
||||
function load_custom_scripts() {
|
||||
wp_register_script( 'um_admin_scripts', $this->js_url . 'um-admin-scripts.js', array('jquery','wp-util'), '', true );
|
||||
wp_register_script( 'um_admin_scripts', $this->js_url . 'um-admin-scripts.js', array('jquery','wp-util', 'wp-color-picker'), '', true );
|
||||
wp_enqueue_script( 'um_admin_scripts' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user