20 |
if (el) el.innerHTML = text; |
if (el) el.innerHTML = text; |
21 |
} |
} |
22 |
|
|
23 |
function load_rec(nr) { |
function load_rec(nr, tmp_template_filename) { |
24 |
Logger.debug('load_rec '+nr); |
|
25 |
|
if (! nr) { |
26 |
|
Logger.error('load_rec called without nr'); |
27 |
|
return false; |
28 |
|
} |
29 |
|
|
30 |
|
if (! tmp_template_filename) tmp_template_filename = template_filename; |
31 |
|
Logger.info('load_rec '+nr+' in '+tmp_template_filename); |
32 |
|
|
33 |
if (loading.record) { |
if (loading.record) { |
34 |
Logger.info('loading of record '+nr+' skipped, load in progress'); |
Logger.info('loading of record '+nr+' skipped, load in progress'); |
44 |
Element.removeClassName('a_left_arr', 'nav_disable'); |
Element.removeClassName('a_left_arr', 'nav_disable'); |
45 |
} |
} |
46 |
|
|
47 |
var args = '?mfn='+nr+'&template_filename='+template_filename; |
var args = '?mfn='+nr+'&template_filename='+tmp_template_filename; |
48 |
|
|
49 |
new Ajax.Updater( 'div_record', url+'record'+args, { |
new Ajax.Updater( 'div_record', url+'record'+args, { |
50 |
asynchronous: 1, |
asynchronous: 1, |