File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 366366 my $i = 1 ;
367367 my $hash = '#' . $jq - > param ( { regex => $regex, flags => $flags,
368368 ( length $precode ? ( pre => $precode ) : ( ) ) ,
369+ ( $samplecode_ta - > is ( ':visible' ) ? ( showsampcode => 1 ) : ( ) ) ,
369370 map { "samp" . $i ++ => $_ } @samps } ) ;
370371 my $baseurl = js ( 'window.location' ) - > { href} = ~ s / #. * \z/ / r ;
371372 $thisurl_ta - > text ( $baseurl . $hash ) ;
389390 $ta_regex - > text ( $res { regex} ) ;
390391 $ta_regex - > height ( $ta_regex - > [ 0 ] - > { scrollHeight} ) ;
391392 $ta_flags - > text ( $res { flags} ) ;
393+ if ( $res { showsampcode} ) {
394+ $samplecode_ta - > show ;
395+ $codecopy - > show ;
396+ $sampcodebtn - > text ( 'Hide Example Perl Code' ) ;
397+ }
392398 if ( exists $res { pre } ) {
393399 $precode_ta - > text ( $res { pre} ) ;
394400 $precode_ta - > show ;
400406 newsamp ( $res { "samp$i" } ) ;
401407 }
402408 }
409+ update ( ) ;
403410 }
404411 else { js ( 'window.location' ) - > { hash} = '' }
405412}
You can’t perform that action at this time.
0 commit comments