27 |
return false; |
return false; |
28 |
} |
} |
29 |
|
|
30 |
|
var rec_uri = $F('rec_uri_prefix'); |
31 |
|
if (! rec_uri) Logger.error('rec_uri_prefix field not found in form!'); |
32 |
|
rec_uri += '/' + nr; |
33 |
|
|
34 |
if (! tmp_template_filename) tmp_template_filename = template_filename; |
if (! tmp_template_filename) tmp_template_filename = template_filename; |
35 |
Logger.info('load_rec '+nr+' in '+tmp_template_filename); |
Logger.info('load_rec '+rec_uri+' in '+tmp_template_filename); |
36 |
|
|
37 |
if (loading.record) { |
if (loading.record) { |
38 |
Logger.info('loading of record '+nr+' skipped, load in progress'); |
Logger.info('loading of record '+rec_uri+' skipped, load in progress'); |
39 |
return false; |
return false; |
40 |
} |
} |
41 |
|
|
48 |
Element.removeClassName('a_left_arr', 'nav_disable'); |
Element.removeClassName('a_left_arr', 'nav_disable'); |
49 |
} |
} |
50 |
|
|
51 |
var args = '?mfn='+nr+'&template_filename='+tmp_template_filename; |
var args = '?record_uri='+rec_uri+'&template_filename='+tmp_template_filename; |
52 |
|
|
53 |
new Ajax.Updater( 'div_record', url+'record'+args, { |
new Ajax.Updater( 'div_record', url+'record'+args, { |
54 |
asynchronous: 1, |
asynchronous: 1, |