Skip to content

Commit

Permalink
Item12180: Further improve presentation
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@16186 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
TimotheLitt authored and TimotheLitt committed Dec 10, 2012
1 parent ed934bf commit 528b1e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/lib/Foswiki/Configure/Checkers/PubUrlPath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ sub check {
return $mess if ( $mess =~ /Error:/ );

my $t = "/System/ProjectLogos/foswiki-logo.png";
my $ok = $this->NOTE("Successfully accessed a file under $value");
my $fail = $this->ERROR("Failed to acccess a file under $value");
my $ok = $this->NOTE("Successfully accessed content under $value");
my $fail = $this->ERROR("Failed to acccess content under $value");
$valobj->{errors}--;

$mess .= $this->NOTE(
"Please wait while the setting is tested. Disregard any message that appears only briefly."
qq{<span name="{PubUrlPath}Wait">Please wait while the setting is tested. Disregard any message that appears only briefly.</span>}
. qq{<span onload='\$("[name=\\"\\{PubUrlPath\\}Error\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Ok\\"]").hide();'>
<img name="{PubUrlPath}TestImage" src="$value$t" testImg="$t" style="height:1px;opacity:0"
onload='\$("[name=\\"\\{PubUrlPath\\}Error\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Ok\\"]").show();'
onerror='\$("[name=\\"\\{PubUrlPath\\}Ok\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Error\\"]").show();'>
<img name="{PubUrlPath}TestImage" src="$value$t" testImg="$t" style="height:1px;float:right;opacity:0"
onload='\$("[name=\\"\\{PubUrlPath\\}Error\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Wait\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Ok\\"]").show();'
onerror='\$("[name=\\"\\{PubUrlPath\\}Ok\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Wait\\"]").hide();\$("[name=\\"\\{PubUrlPath\\}Error\\"]").show();'>
<span name="{PubUrlPath}Ok">$ok</span>
<span name="{PubUrlPath}Error">$fail</span></span>}
);
Expand Down

0 comments on commit 528b1e2

Please sign in to comment.