X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;ds=sidebyside;f=yarrg%2Fweb%2Fqtextstring;h=93eb1249633499550bf763cb7c33ccd1c735115b;hb=f2f25e1201a92e62c3eeb35cdec0a62539e18cb5;hp=639e9abf25bc3a3db06a091f776138e856c32092;hpb=70f23c42b325a1463fe8a9d76cb967b7df1260df;p=ypp-sc-tools.db-test.git
diff --git a/yarrg/web/qtextstring b/yarrg/web/qtextstring
index 639e9ab..93eb124 100644
--- a/yarrg/web/qtextstring
+++ b/yarrg/web/qtextstring
@@ -40,14 +40,18 @@ $qa => $m->caller_args(1)->{'qa'}
$dbh
$thingstring
$emsgstore
-$perresult
+$onresults
$prefix => 'ts';
+$helpref => undef;
%args>
<%perl>
my $stringval= $qa->{$thingstring};
$stringval='' if !defined $stringval;
my $p= $prefix.'_';
+my $checker= $m->fetch_comp("check_${thingstring}");
+my $significant_nonempty= $checker->attr_exists('significant_nonempty');
+
%perl>
<&| script &>
@@ -57,7 +61,7 @@ my $p= $prefix.'_';
<%$p%>timeout=false;
<%$p%>request=false;
-<%$p%>done='';
+<%$p%>done=<% $significant_nonempty ? "null" : "''" %>;
<%$p%>needed='';
function <%$p%>Later(){
window.clearTimeout(<%$p%>timeout);
@@ -97,13 +101,13 @@ register_onload(<%$p%>Needed);
id="<% $thingstring %>" name="<% $thingstring %>"
onchange="<%$p%>Needed();" onkeyup="<%$p%>Later();"
value="<% $stringval |h %>"
- >
+ ><% defined($helpref) ? "[?]" : '' %>