11
by Danilo Segan
Provide saving of all the fields properly. |
1 |
(function($) { |
7
by Danilo Segan
Add some JS display code. |
2 |
|
3 |
$(document).ready(function() { |
|
4 |
$("select#company_select").change(function() { |
|
50
by Danilo Segan
Change "Other" for Company to "None of the Above". |
5 |
if ($(this).val() == 'None of the Above') { |
7
by Danilo Segan
Add some JS display code. |
6 |
$("input#company_other").parent().removeClass('hidden'); |
7 |
} else { |
|
8 |
$("input#company_other").parent().addClass('hidden'); |
|
9 |
}
|
|
10 |
});
|
|
11 |
||
8
by Danilo Segan
Make attendance type affect the form display as well. |
12 |
$("select#attendance_type").change(function() { |
13 |
if ($(this).val() == 1) { |
|
14 |
$("div#attendance_details").removeClass('hidden'); |
|
15 |
} else { |
|
16 |
$("div#attendance_details").addClass('hidden'); |
|
17 |
}
|
|
18 |
});
|
|
19 |
||
11
by Danilo Segan
Provide saving of all the fields properly. |
20 |
$("select#visa_status").change(function() { |
7
by Danilo Segan
Add some JS display code. |
21 |
if ($(this).val() != 0) { |
22 |
$("div#visa_details").removeClass('hidden'); |
|
23 |
} else { |
|
24 |
$("div#visa_details").addClass('hidden'); |
|
25 |
}
|
|
26 |
});
|
|
30
by Danilo Segan
JS confirmation for saving, version update. |
27 |
|
28 |
$("input[type=submit]#save").click(function() { |
|
32
by Danilo Segan
Add delete_option to tearDown for plugin deactivation. |
29 |
return confirm("You have chosen not to complete your " + |
30 |
"Linaro Connect Q1.12 registration now - Are you sure?"); |
|
30
by Danilo Segan
JS confirmation for saving, version update. |
31 |
});
|
39
by Danilo Segan
Minor cleanups. |
32 |
|
7
by Danilo Segan
Add some JS display code. |
33 |
});
|
10
by Danilo Segan
Add initial saving of generic fields. |
34 |
|
11
by Danilo Segan
Provide saving of all the fields properly. |
35 |
})(jQuery); |