Skip to content

Commit

Permalink
Item113: the first 16 css classes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/NatSkinPlugin@1090 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Nov 30, 2008
1 parent 4b7ee9f commit d3a9b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/TWiki/Plugins/NatSkinPlugin.pm
Expand Up @@ -1268,7 +1268,7 @@ sub getWebComponent {

# SMELL: why does preview call for components twice ???
if ($seenWebComponent{$component} && $seenWebComponent{$component} > 2 && !$multiple) {
return '<span class="twikiAlert">'.
return '<span class="foswikiAlert">'.
"ERROR: component '$component' already included".
'</span>';
}
Expand Down
6 changes: 3 additions & 3 deletions lib/TWiki/Plugins/NatSkinPlugin/Search.pm
Expand Up @@ -274,7 +274,7 @@ sub search {
if (TWiki::isValidTopicName($theSearchString)) { # SMELL
$text = TWiki::Plugins::NatSkinPlugin::getWebComponent('WebNothingFound', $web);
} else {
$text = '<div class="natSearch twikiAlert">%TMPL:P{"NOTHING_FOUND"}%</div>';
$text = '<div class="natSearch foswikiAlert">%TMPL:P{"NOTHING_FOUND"}%</div>';
}
$text .= $tmplSearch if $theSearchBox eq 'on';
$text = TWiki::Func::expandCommonVariables($text, $theSearchString, $web);
Expand Down Expand Up @@ -618,9 +618,9 @@ sub makeTopicSummary {
foreach my $term (@searchTerms) {
$term = '\b'.$term.'\b' if $this->{keywordSearch};
if ($this->{ignoreCase}) {
$theText =~ s:($term):<span class="twikiAlert">$1</span>:gi;
$theText =~ s:($term):<span class="foswikiAlert">$1</span>:gi;
} else {
$theText =~ s:($term):<span class="twikiAlert">$1</span>:g;
$theText =~ s:($term):<span class="foswikiAlert">$1</span>:g;
}
}

Expand Down

0 comments on commit d3a9b5b

Please sign in to comment.