Files
CHIEFSOFT\ameye e9e5c0546c first commit
2023-11-30 13:20:54 -05:00

18 lines
576 B
JavaScript

jQuery( document ).ready( function ( $ ) {
$( '.envo-responsive-input-wrap .customize-control-input-value' ).on( 'keyup', function () {
var parent = $( this ).parents( '.envo-responsive-input-wrap' ),
dbstore_cache = $( '.envo-responsive-input-db', parent ),
dbstore = dbstore_cache.val(),
device_type = $( this ).data( 'device-type' );
dbstore = dbstore === '' ? { } : JSON.parse( dbstore );
dbstore[device_type] = this.value;
dbstore_cache.val( JSON.stringify( dbstore ) ).change();
} )
} );