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';
|
||||
|
||||
/**
|
||||
* Turn select field into beautiful dropdown with select2 library
|
||||
* This function is called when document ready and when clone button is clicked (to update the new cloned field)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
options = $this.data( 'options' );
|
||||
$this.siblings( '.select2-container' ).remove();
|
||||
$this.show().select2( options );
|
||||
|
||||
rwmbSelect.bindEvents( $this );
|
||||
}
|
||||
|
||||
$( ':input.mashsb-rwmb-select_advanced' ).each( update );
|
||||
$( '.mashsb-rwmb-input' ).on( 'clone', ':input.mashsb-rwmb-select_advanced', update );
|
||||
} );
|
||||
Reference in new issue
Block a user