HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/_trash/wp-content/plugins/secupress/assets/admin/js/secupress-wplink.js
/**
 * @version 1.0
 * @author Julio Potier
 */
jQuery(document).ready(function ($){
	$('[type=url][name^=secupress].wp_link_dialog').prop('readonly', true)
		.after( ' <button type="button" class="wp_link_dialog_open secupress-button">' + secupresswplink.insert + '</button>' +
				' <input type="reset" class="wp_link_dialog_reset secupress-button-mini" />' );
	$('[type=reset].wp_link_dialog_reset').click(function (e){
		e.preventDefault();
		var $t = $(this).parent().find('[type=url][name^=secupress].wp_link_dialog');
		$($t).val(secupresswplink.home_url);
	});
	$('button.wp_link_dialog_open').click(function (e){
		$('#link-options, #wplink-link-existing-content').hide();
		var $t = $(this).prev('[type=url][name^=secupress].wp_link_dialog');
		wpLink.open($($t).attr('id'), '', '' );
		wpLink.htmlUpdate = function() {
			var attrs = wpLink.getAttrs();
			var parser = document.createElement( 'a' );
			parser.href = attrs.href;
			if ( 'javascript:' === parser.protocol || 'data:' === parser.protocol ) { // jshint ignore:line
				$($t).val('');
				wpLink.close();
			}
			$($t).val(attrs.href);
			wpLink.close();
		}
	});
})