File "responsive-devices.js"

Full Path: /home/leadltht/fastlinkinternet.com/admin/wp-content/plugins/envo-extra/controls/responsive-devices/js/responsive-devices.js
File size: 576 bytes
MIME-type: text/plain
Charset: utf-8

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();
    } )

} );