From 187198ee65ffd9231ec7b082f8e35227db07ac70 Mon Sep 17 00:00:00 2001 From: James Golovich Date: Mon, 3 Nov 2014 09:41:57 -0800 Subject: [PATCH] Don't assume value 1 is boolean, use the pods-boolean class 3.0-unstable version of #2397 --- ui/js/jquery.pods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/js/jquery.pods.js b/ui/js/jquery.pods.js index 0dfff852f9..89dd2668c2 100644 --- a/ui/js/jquery.pods.js +++ b/ui/js/jquery.pods.js @@ -103,7 +103,7 @@ var val = $el.val(); if ( $el.is( 'input[type=checkbox]' ) && !$el.is( ':checked' ) ) { - if ( 1 == val ) + if ( $el.is( '.pods-boolean' ) ) val = 0; else return true; // This input isn't a boolean, continue the loop @@ -1783,4 +1783,4 @@ $.error( 'Method ' + method + ' does not exist on jQuery.Pods' ); } }; -} )( jQuery ); \ No newline at end of file +} )( jQuery );