Lines 32-39
Link Here
|
32 |
[% IF categorycode %] |
32 |
[% IF categorycode %] |
33 |
update_category_code( "[% categorycode %]" ); |
33 |
update_category_code( "[% categorycode %]" ); |
34 |
[% ELSE %] |
34 |
[% ELSE %] |
35 |
if ( $("#categorycode").length > 0 ){ |
35 |
if ( $("#categorycode_entry").length > 0 ){ |
36 |
var category_code = $("#categorycode").find("option:selected").val(); |
36 |
var category_code = $("#categorycode_entry").find("option:selected").val(); |
37 |
update_category_code( category_code ); |
37 |
update_category_code( category_code ); |
38 |
} |
38 |
} |
39 |
[% END %] |
39 |
[% END %] |
Lines 95-101
Link Here
|
95 |
|
95 |
|
96 |
function update_category_code(category_code) { |
96 |
function update_category_code(category_code) { |
97 |
if ( $(category_code).is("select") ) { |
97 |
if ( $(category_code).is("select") ) { |
98 |
category_code = $("#categorycode").find("option:selected").val(); |
98 |
category_code = $("#categorycode_entry").find("option:selected").val(); |
99 |
} |
99 |
} |
100 |
var mytables = $(".attributes_table"); |
100 |
var mytables = $(".attributes_table"); |
101 |
$(mytables).find("li").hide(); |
101 |
$(mytables).find("li").hide(); |
Lines 924-931
Link Here
|
924 |
</li> |
924 |
</li> |
925 |
[% END %] |
925 |
[% END %] |
926 |
<li> |
926 |
<li> |
927 |
<label for="categorycode" class="required">Category: </label> |
927 |
<label for="categorycode_entry" class="required">Category: </label> |
928 |
<select id="categorycode" name="categorycode" onchange="update_category_code(this);"> |
928 |
<select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> |
929 |
[% FOREACH typeloo IN typeloop %] |
929 |
[% FOREACH typeloo IN typeloop %] |
930 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
930 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
931 |
[% IF ( loop.first ) %] |
931 |
[% IF ( loop.first ) %] |
Lines 1321-1327
Link Here
|
1321 |
$('#memberentry_messaging_prefs > *').change(function() { |
1321 |
$('#memberentry_messaging_prefs > *').change(function() { |
1322 |
message_prefs_dirty = true; |
1322 |
message_prefs_dirty = true; |
1323 |
}); |
1323 |
}); |
1324 |
$('#categorycode').change(function() { |
1324 |
$('#categorycode_entry').change(function() { |
1325 |
var categorycode = $(this).val(); |
1325 |
var categorycode = $(this).val(); |
1326 |
if (message_prefs_dirty) { |
1326 |
if (message_prefs_dirty) { |
1327 |
if (!confirm('Change messaging preferences to default for this category?')) { |
1327 |
if (!confirm('Change messaging preferences to default for this category?')) { |
1328 |
- |
|
|