Lines 10-18
$(document).ready(function(){
Link Here
|
10 |
message_prefs_dirty = true; // unless op=add consider the message prefs dirty |
10 |
message_prefs_dirty = true; // unless op=add consider the message prefs dirty |
11 |
} |
11 |
} |
12 |
|
12 |
|
13 |
if( $("#messaging_prefs_loading").length ){ // This element only appears in the template if op=add |
13 |
if ( $("#messaging_prefs_loading").length ) { |
14 |
$('#categorycode_entry').change(() => { update_messaging_prefs() }); |
14 |
$('#categorycode_entry').change(() => { update_messaging_prefs() }); |
15 |
update_messaging_prefs(); |
15 |
|
|
|
16 |
const searchParams = new URLSearchParams(location.search); |
17 |
if (searchParams.has('op', 'add_form')) { |
18 |
update_messaging_prefs(); |
19 |
} |
16 |
|
20 |
|
17 |
function update_messaging_prefs () { |
21 |
function update_messaging_prefs () { |
18 |
var messaging_prefs_loading = $("#messaging_prefs_loading"); |
22 |
var messaging_prefs_loading = $("#messaging_prefs_loading"); |
19 |
- |
|
|