Lines 20-28
Link Here
|
20 |
<script type="text/javascript"> |
20 |
<script type="text/javascript"> |
21 |
$(document).ready(function(){ |
21 |
$(document).ready(function(){ |
22 |
[% IF tag_number == 'rancor' %] |
22 |
[% IF tag_number == 'rancor' %] |
23 |
function RancorReplaceField( new_text ){ |
23 |
function RancorReplaceField( new_text, ind_1, ind_2 ){ |
24 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
24 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
25 |
cur_field.setText(new_text); |
25 |
cur_field.setText(new_text); |
|
|
26 |
cur_field.setIndicator1(ind_1); |
27 |
cur_field.setIndicator2(ind_2); |
26 |
return true; |
28 |
return true; |
27 |
} |
29 |
} |
28 |
[% IF ( clear ) %] |
30 |
[% IF ( clear ) %] |
Lines 36-42
Link Here
|
36 |
[%- END -%] |
38 |
[%- END -%] |
37 |
[%- END -%]‡9[% authid %]"; |
39 |
[%- END -%]‡9[% authid %]"; |
38 |
[% END %] |
40 |
[% END %] |
39 |
RancorReplaceField( new_line ); |
41 |
RancorReplaceField( new_line, "[% indicator1 %]", "[% indicator2 %]" ); |
40 |
[% ELSE %] |
42 |
[% ELSE %] |
41 |
var index_start = "[% index %]"; |
43 |
var index_start = "[% index %]"; |
42 |
var whichfield; |
44 |
var whichfield; |