From c1f04490743ce629c702cd80cc5da38b2f402c08 Mon Sep 17 00:00:00 2001 From: w0rldart Date: Sat, 22 Dec 2012 13:13:55 +0100 Subject: [PATCH] Fixing compatibility with $.mobile --- jquery.motionCaptcha.0.2.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jquery.motionCaptcha.0.2.js b/jquery.motionCaptcha.0.2.js index 1f362c5..f22c3f4 100644 --- a/jquery.motionCaptcha.0.2.js +++ b/jquery.motionCaptcha.0.2.js @@ -294,6 +294,10 @@ jQuery.fn.motionCaptcha || (function($) { // Enable the submit button: $submit.prop('disabled', false); + + if ( $.mobile ) { + $submit.button('enable'); + } return; }, @@ -650,4 +654,4 @@ jQuery.fn.motionCaptcha || (function($) { return Math.sqrt(dx * dx + dy * dy); } -})(jQuery); \ No newline at end of file +})(jQuery);