Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | foreach ( $other_args['show on select'] as $div_id => $options ) { |
177 | 177 | $options_str = implode( "', '", $options ); |
178 | 178 | $js_text = "showIfSelected('$input_id', ['$options_str'], '$div_id'); "; |
179 | | - $sfgShowOnSelectCalls[] = "$('#$input_id').change( function() { $js_text } );"; |
| 179 | + $sfgShowOnSelectCalls[] = "jQuery('#$input_id').change( function() { $js_text } );"; |
180 | 180 | $sfgShowOnSelectCalls[] = $js_text; |
181 | 181 | } |
182 | 182 | } |
— | — | @@ -286,7 +286,7 @@ |
287 | 287 | foreach ( $possible_values as $key => $possible_value ) { |
288 | 288 | $cur_input_id = $enum_input_ids[$possible_value]; |
289 | 289 | if ( in_array( $possible_value, $options ) ) { |
290 | | - $sfgShowOnSelectCalls[] = "$('#$cur_input_id').click( function() { $js_text } );"; |
| 290 | + $sfgShowOnSelectCalls[] = "jQuery('#$cur_input_id').click( function() { $js_text } );"; |
291 | 291 | } |
292 | 292 | } |
293 | 293 | } |
— | — | @@ -380,7 +380,7 @@ |
381 | 381 | foreach ( $possible_values as $key => $possible_value ) { |
382 | 382 | $cur_input_id = $enum_input_ids[$possible_value]; |
383 | 383 | if ( in_array( $possible_value, $options ) ) { |
384 | | - $sfgShowOnSelectCalls[] = "$('#$cur_input_id').click( function() { $js_text } );"; |
| 384 | + $sfgShowOnSelectCalls[] = "jQuery('#$cur_input_id').click( function() { $js_text } );"; |
385 | 385 | } |
386 | 386 | } |
387 | 387 | } |
— | — | @@ -911,7 +911,7 @@ |
912 | 912 | // radiobutton has to handle the change. |
913 | 913 | foreach ( $enum_input_ids as $cur_input_id ) { |
914 | 914 | if ( in_array( $possible_value, $options ) ) { |
915 | | - $sfgShowOnSelectCalls[] = "$('#$cur_input_id').click( function() { $js_text } );"; |
| 915 | + $sfgShowOnSelectCalls[] = "jQuery('#$cur_input_id').click( function() { $js_text } );"; |
916 | 916 | } |
917 | 917 | } |
918 | 918 | } |
— | — | @@ -922,7 +922,7 @@ |
923 | 923 | } |
924 | 924 | |
925 | 925 | static function checkboxHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) { |
926 | | - global $sfgTabIndex, $sfgFieldNum; |
| 926 | + global $sfgTabIndex, $sfgFieldNum, $sfgShowOnSelectCalls; |
927 | 927 | |
928 | 928 | $className = ( $is_mandatory ) ? "mandatoryField" : "createboxInput"; |
929 | 929 | if ( array_key_exists( 'class', $other_args ) ) |
— | — | @@ -933,7 +933,8 @@ |
934 | 934 | if ( array_key_exists( 'show on select', $other_args ) ) { |
935 | 935 | $div_id = key( $other_args['show on select'] ); |
936 | 936 | $js_text = "showIfChecked(['$input_id'], '$div_id');"; |
937 | | - $sfgShowOnSelectCalls[] = "$('#$input_id').click( function() { $js_text } );"; |
| 937 | + $sfgShowOnSelectCalls[] = $js_text; |
| 938 | + $sfgShowOnSelectCalls[] = "jQuery('#$input_id').click( function() { $js_text } );"; |
938 | 939 | } |
939 | 940 | |
940 | 941 | // can show up here either as an array or a string, depending on |