User:New Zeus/common.js

if ( 	// Only activate on edits	(( mw.config.get('wgAction') == "edit" ) || ( mw.config.get('wgAction') == "submit" ))	){ // Insert the checkbox $('#wpMinoredit').before('&#160; &#160;Confirm Save '); // Disable the save button on load $('input[name="wpSave"]').prop("disabled", true); $('#wpSummary').focus(function{		$(this).unbind;	}); // Set the change function for the checkbox $('input.ruSure').change(function{		if ($(this).prop("checked")){	$('input[name="wpSave"]').prop("disabled", false);			$('#wpSummary').unbind('focus');

$('#wpSummary').keydown(function(event){				if (event.keyCode == 13) {					$('form#editform').submit;					return false;				}			}); } else { $('input[name="wpSave"]').prop("disabled", true); $('#wpSummary').unbind; }	}); }