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