Index: trunk/extensions/UsabilityInitiative/OptIn/optin.js |
— | — | @@ -1,14 +0,0 @@ |
2 | | -/* JavaScript for OptIn extension */
|
3 | | -
|
4 | | -$( document ).ready( function() {
|
5 | | - $( '.optin-other-select' ).hide();
|
6 | | - $( 'select.optin-need-other' ).change( function() {
|
7 | | - if( $(this).val() == 'other' )
|
8 | | - $( '#' + $(this).attr( 'id' ) + '-other' ).show();
|
9 | | - else
|
10 | | - $( '#' + $(this).attr( 'id' ) + '-other' ).hide();
|
11 | | - });
|
12 | | - $( '.optin-other-radios' ).click( function() {
|
13 | | - $(this).prev().prev().click();
|
14 | | - });
|
15 | | -}); |
\ No newline at end of file |
Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.js |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +/* JavaScript for OptIn extension */
|
| 3 | +
|
| 4 | +$( document ).ready( function() {
|
| 5 | + $( '.optin-other-select' ).hide();
|
| 6 | + $( 'select.optin-need-other' ).change( function() {
|
| 7 | + if( $(this).val() == 'other' )
|
| 8 | + $( '#' + $(this).attr( 'id' ) + '-other' ).show();
|
| 9 | + else
|
| 10 | + $( '#' + $(this).attr( 'id' ) + '-other' ).hide();
|
| 11 | + });
|
| 12 | + $( '.optin-other-radios' ).click( function() {
|
| 13 | + $(this).prev().prev().click();
|
| 14 | + });
|
| 15 | +}); |
\ No newline at end of file |