first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
} )
|
||||
|
||||
} );
|
||||
Reference in New Issue
Block a user