r8899@llin: dpavlin | 2005-11-16 16:32:37 +0100
[webpac2] / web / browse.cgi
index 44bf8f5..a5c0cee 100755 (executable)
@@ -94,6 +94,7 @@ if ($q->path_info =~ m#xml#) {
                                return $iconv_loc->convert(chr(hex($t)));
                        }
                        $tmpl =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex;
+                       $tmpl =~ s/[\n\r]+$//s;
 
                        my $tmpl_file = $out->{'include_path'} . '/' . $template;
                        write_file($tmpl_file . '.new', $tmpl) || die "can't save $tmpl_file: $!";
@@ -123,9 +124,7 @@ iwfHideGentlyDelay('div_status', 2, 2000, 1);
 <action type='html' target='div_template' errorCode='' errorMessage='' >
 <pre>}, Dumper($q->Vars), qq{</pre>
 
-<form name="frmEditor" action="$self" method="post"
-iwfTarget="div_status"
->
+<form name="frmEditor" action="$self" method="post" iwfTarget="div_status" >
 
 <textarea name="tt_template" cols="80" rows="10" style="display: block;">
 $tmpl
@@ -133,13 +132,20 @@ $tmpl
 
 <br/>
 <input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" />
-<input type="checkbox" name="checkin_template" id="checkin_checkbox" label="checkin" />
-<span id="div_status" style="color: #808080;">idle</span>
+<!--
+<input type="checkbox" name="checkin_template" id="checkin_checkbox" label="checkin" /> checkin
+-->
+&nbsp;&nbsp;<span id="div_status" style="color: #808080;">idle</span>
 
 <input type='hidden' value='hidden post value' name='hidValue' />
 
 </form>
 </action>
+<action type='js'>
+<!--
+iwfHideGentlyDelay('div_status', 2, 2000, 1);
+-->
+</action>
 </response>
                };