X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fqtextstring;h=6872e7ecdd449c353a6828dd5807462d62f7808f;hp=ebf344d0dc7d7eb47fd5b1859a726409ebd43568;hb=ea3cffe854b1c540bc68cd2218fdb2be732197fa;hpb=43454422b2df5e0dcfe144fcb871a2b6f9c1a3d0 diff --git a/yarrg/web/qtextstring b/yarrg/web/qtextstring index ebf344d..6872e7e 100644 --- a/yarrg/web/qtextstring +++ b/yarrg/web/qtextstring @@ -100,24 +100,12 @@ function <%$p%>Ready() { register_onload(<%$p%>Needed); -% if (!printable($m)) { - - id="<% $thingstring %>" name="<% $thingstring %>" - onchange="<%$p%>Needed();" onkeyup="<%$p%>Later();" - value="<% $stringval |h %>" - ><% defined($helpref) ? "[?]" : '' %><% - $m->content %> -
-
 

-% } else { -<% $stringval |h %> -
-
-% } - <%perl> +my ($canonstring); + if ($significant_nonempty || length $thingstring) { - my ($emsg,$canonstring,@results)= $m->comp('qtextstringcheck', + my ($emsg,@results); + ($emsg,$canonstring,@results)= $m->comp('qtextstringcheck', what => $checkkind, ocean => $qa->{Ocean}, string => $stringval, @@ -130,3 +118,18 @@ if ($significant_nonempty || length $thingstring) { $onresults->(@results); } + +% if (!printable($m)) { + + id="<% $thingstring %>" name="<% $thingstring %>" + onchange="<%$p%>Needed();" onkeyup="<%$p%>Later();" + value="<% $stringval |h %>" + ><% defined($helpref) ? "[?]" : '' %><% + $m->content %> +
+
 

+% } else { +<% $canonstring |h %> +
+
+% }