/** * File: UserExperience_Remove_CssJs_Page_View.js * * @since 2.7.0 * * @package W3TC */ jQuery(function() { jQuery(document).on( 'click', '#w3tc_remove_cssjs_singles_add', function() { var single = prompt('Enter CSS/JS URL.'); if (single !== null) { var exists = false; jQuery('.remove_cssjs_singles_path').each( function() { if (jQuery(this).html() == single) { alert('Entry already exists!'); exists = true; return false; } } ); if (!exists) { var li = jQuery( '
CSS/JS path to remove: | ' + '' + '' + single + ' ' + '' + ' | ' + '
---|---|
' + ' | ' +
'' +
' Specify relative/absolute page URLs that the above CSS/JS should be removed from. Include one entry per line. ' + ' | ' +
'