Import legacy nurinda.co.id website

This commit is contained in:
dirga committed 2026-10-01 14:27:19 +07:00
1 parent 3f59bb9038
commit 6e21646ac4
13389 files changed
+3246690

No files matched your search

@@ -0,0 +1,46 @@
jQuery( function ( $ )
{
'use strict';
/**
* Update datetime picker element
* Used for static & dynamic added elements (when clone)
*/
function update()
{
var $this = $( this ),
options = $this.data( 'options' ),
$inline = $this.siblings( '.mashsb-rwmb-datetime-inline' ),
current = $this.val();
$this.siblings( '.ui-datepicker-append' ).remove(); // Remove appended text
if( $inline.length )
{
options.altField = '#' + $this.attr( 'id' );
$inline
.removeClass( 'hasDatepicker' )
.empty()
.prop( 'id', '' )
.timepicker( options )
.timepicker( "setTime", current );
}
else
{
$this.removeClass( 'hasDatepicker' ).timepicker( options );
}
}
// Set language if available
if ( $.timepicker.regional.hasOwnProperty( MASHSB_RWMB_Timepicker.locale ) )
{
$.timepicker.setDefaults( $.timepicker.regional[MASHSB_RWMB_Timepicker.locale] );
}
else if ( $.timepicker.regional.hasOwnProperty( MASHSB_RWMB_Timepicker.localeShort ) )
{
$.timepicker.setDefaults( $.timepicker.regional[MASHSB_RWMB_Timepicker.localeShort] );
}
$( '.mashsb-rwmb-time' ).each( update );
$( '.mashsb-rwmb-input' ).on( 'clone', '.mashsb-rwmb-time', update );
} );