Lines 5-13
Link Here
|
5 |
//<![CDATA[ |
5 |
//<![CDATA[ |
6 |
$(document).ready(function(){ |
6 |
$(document).ready(function(){ |
7 |
[% IF tag_number == 'rancor' %] |
7 |
[% IF tag_number == 'rancor' %] |
8 |
function RancorReplaceField( new_text ){ |
8 |
function RancorReplaceField( new_text, ind_1, ind_2 ){ |
9 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
9 |
var cur_field = opener.opener.jQuery(".CodeMirror")[0].CodeMirror.marceditor.getCurrentField(); |
10 |
cur_field.setText(new_text); |
10 |
cur_field.setText(new_text); |
|
|
11 |
cur_field.setIndicator1(ind_1); |
12 |
cur_field.setIndicator2(ind_2); |
11 |
return true; |
13 |
return true; |
12 |
} |
14 |
} |
13 |
[% IF ( clear ) %] |
15 |
[% IF ( clear ) %] |
Lines 21-27
Link Here
|
21 |
[%- END -%] |
23 |
[%- END -%] |
22 |
[%- END -%]‡9[% authid %]"; |
24 |
[%- END -%]‡9[% authid %]"; |
23 |
[% END %] |
25 |
[% END %] |
24 |
RancorReplaceField( new_line ); |
26 |
RancorReplaceField( new_line, "[% indicator1 %]", "[% indicator2 %]" ); |
25 |
[% ELSE %] |
27 |
[% ELSE %] |
26 |
var index_start = "[% index %]"; |
28 |
var index_start = "[% index %]"; |
27 |
var whichfield; |
29 |
var whichfield; |