Created
December 15, 2016 11:21
-
-
Save BhargavBhandari90/5bfb7aa12f2a5bdab615c87931ffdff0 to your computer and use it in GitHub Desktop.
Prevent license key validation by Enter Key as it is deactivates the first plugin's license.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Prevent license key validation by Enter Key as it is deactivates the first plugin's license. */ | |
jQuery( '.license-form .regular-text' ).each( function(){ | |
jQuery( this ).keypress(function (event) { | |
var keycode = (event.keyCode ? event.keyCode : event.which); | |
/* check if key pressed is "Enter key" or not */ | |
if(keycode == '13'){ | |
return false; | |
} | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rtMedia/app/assets/admin/js/scripts.js