Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,23 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Update color picker element
|
||||
* Used for static & dynamic added elements (when clone)
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
$output = $this.siblings( '.mashsb-rwmb-output' );
|
||||
|
||||
$this.on( 'input propertychange change', function( e )
|
||||
{
|
||||
$output.html( $this.val() );
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-range' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', 'input.mashsb-rwmb-range', update );
|
||||
} );
|
||||
Reference in new issue
Block a user