New version of S5: "addcss" attribute, refactored styles (common part moved to s5-base.css), style debug
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@711 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
5a566783e5
commit
bed5debff1
|
@ -375,7 +375,7 @@ sub splitString {
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
|
|
||||||
# Now split on quote sign; be tolerant about unclosed quotes
|
# Now split on quote sign; be tolerant about unclosed quotes
|
||||||
@quoteparts = split(/"/, $string);
|
@quoteparts = split(/\"/, $string);
|
||||||
foreach my $part (@quoteparts) {
|
foreach my $part (@quoteparts) {
|
||||||
# After every odd quote, quote special chars
|
# After every odd quote, quote special chars
|
||||||
$part = url_quote($part) if $i++ % 2;
|
$part = url_quote($part) if $i++ % 2;
|
||||||
|
@ -392,7 +392,7 @@ sub splitString {
|
||||||
# "+" must be quoted.
|
# "+" must be quoted.
|
||||||
s/(?<!^)\+/%2B/g;
|
s/(?<!^)\+/%2B/g;
|
||||||
# Remove quotes
|
# Remove quotes
|
||||||
s/"//g;
|
s/\"//g;
|
||||||
}
|
}
|
||||||
return @parts;
|
return @parts;
|
||||||
}
|
}
|
||||||
|
@ -445,6 +445,7 @@ sub negateComparisonType {
|
||||||
# Add a boolean chart
|
# Add a boolean chart
|
||||||
sub addChart {
|
sub addChart {
|
||||||
my ($field, $comparisonType, $value, $negate) = @_;
|
my ($field, $comparisonType, $value, $negate) = @_;
|
||||||
|
warn "$field $comparisonType $value";
|
||||||
|
|
||||||
$negate && ($comparisonType = negateComparisonType($comparisonType));
|
$negate && ($comparisonType = negateComparisonType($comparisonType));
|
||||||
makeChart("$chart-$and-$or", $field, $comparisonType, $value);
|
makeChart("$chart-$and-$or", $field, $comparisonType, $value);
|
||||||
|
|
Loading…
Reference in New Issue