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,22 @@
|
||||
jQuery( function( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
function update()
|
||||
{
|
||||
var $this = $( this ),
|
||||
val = $this.val(),
|
||||
$selected = $this.siblings( "[data-parent-id='" + val + "']" ),
|
||||
$notSelected = $this.parent().find( '.mashsb-rwmb-select-tree' ).not( $selected );
|
||||
|
||||
$selected.removeClass( 'hidden' );
|
||||
$notSelected
|
||||
.addClass( 'hidden' )
|
||||
.find( 'select' )
|
||||
.prop( 'selectedIndex', 0 );
|
||||
}
|
||||
|
||||
$( '.mashsb-rwmb-input' )
|
||||
.on( 'change', '.mashsb-rwmb-select-tree select', update )
|
||||
.on( 'clone', '.mashsb-rwmb-select-tree select', update );
|
||||
} );
|
||||
Reference in new issue
Block a user