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,26 @@
|
||||
jQuery( function ( $ )
|
||||
{
|
||||
'use strict';
|
||||
|
||||
$( 'body' ).on( 'change', '.mashsb-rwmb-image-select input', function ()
|
||||
{
|
||||
var $this = $( this ),
|
||||
type = $this.attr( 'type' ),
|
||||
selected = $this.is( ':checked' ),
|
||||
$parent = $this.parent(),
|
||||
$others = $parent.siblings();
|
||||
if ( selected )
|
||||
{
|
||||
$parent.addClass( 'mashsb-rwmb-active' );
|
||||
if ( type === 'radio' )
|
||||
{
|
||||
$others.removeClass( 'mashsb-rwmb-active' );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$parent.removeClass( 'mashsb-rwmb-active' );
|
||||
}
|
||||
} );
|
||||
$( '.mashsb-rwmb-image-select input' ).trigger( 'change' );
|
||||
} );
|
||||
Reference in new issue
Block a user