• I always find it a pain in the neck to replace images manually through cPanel’s File Manager and phpMyAdmin. When I first came across this plugin it still lacked the ability to replace images of different extensions, until its recent release. This is truly a saver to me.

    I wish there was an admin setting that I can always set the Date Option to “Keep the date”. Hence I had to insert the following JS to override its default.

    jQuery(document).ready(function($) {
    
    	/* Change default selection for Date Options in Replaced Media Upload */
    	if ($('body').hasClass('media_page_enable-media-replace-enable-media-replace')) {
    		// Remove checked attribute from Replace the date input
    		$('section.options > .timestamp > ul > li input[value="1"]').removeAttr('checked');
    		
    		// Trigger click the Keep the date input
    		$('section.options > .timestamp > ul > li input[value="2"]').trigger('click');
    	}
    
    });

    Thank you very much for this wonderful plugin.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘A true saver’ is closed to new replies.