PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
plugins
/
TemplatemelaMetaBox
/
js
/** * Update color picker element * Used for static & dynamic added elements (when clone) */ jQuery( document ).ready( function( $ ) { $( ':input.rwmb-color' ).each( rwmb_update_color_picker ); $( '.rwmb-input' ).on( 'clone', ':input.rwmb-color', rwmb_update_color_picker ) .on( 'focus', '.rwmb-color', function() { $( this ).siblings( '.rwmb-color-picker' ).show(); return false; } ).on( 'blur', '.rwmb-color', function() { $( this ).siblings( '.rwmb-color-picker' ).hide(); return false; } ); function rwmb_update_color_picker() { var $this = $( this ), $clone_container = $this.closest('.rwmb-clone'), $color_picker = $this.siblings( '.rwmb-color-picker' ); // Make sure the value is displayed if ( !$this.val() ) $this.val( '#' ); if( typeof jQuery.wp === 'object' && typeof jQuery.wp.wpColorPicker === 'function' ){ if( $clone_container.length > 0 ) { $this.appendTo( $clone_container ).siblings( 'div.wp-picker-container' ).remove(); } $this.wpColorPicker(); } else { //We use farbtastic if the WordPress color picker widget doesn't exist $color_picker.farbtastic( $this ); } } } );
[-] jquery.validate.min.js
[edit]
[-] oembed.js
[edit]
[-] taxonomy.js
[edit]
[-] slider.js
[edit]
[-] image-select.js
[edit]
[+]
..
[-] image-advanced.js
[edit]
[-] date.js
[edit]
[-] autosave.js
[edit]
[-] time.js
[edit]
[-] select-advanced.js
[edit]
[+]
jqueryui
[-] plupload-image.js
[edit]
[+]
select2
[-] thickbox-image.js
[edit]
[-] color.js
[edit]
[-] map.js
[edit]
[-] file-input.js
[edit]
[-] image.js
[edit]
[-] validate.js
[edit]
[-] datetime.js
[edit]
[-] file-advanced.js
[edit]
[-] file.js
[edit]
[-] clone.js
[edit]