Skip to content

Commit

Permalink
Item14496: fixed html5 data attribs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Sep 25, 2017
1 parent c64de85 commit dd7b0b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions data/System/JQDataTablesPlugin.txt
Expand Up @@ -193,6 +193,7 @@ Click on the table headers to sort the columns according to their data type.

---++ Change History
%TABLE{columnwidths="7em" tablewidth="100%"}%
| 25 Sep 2017: | fixed html5 data attributes |
| 30 Aug 2017: | disabled =Author= auto-column; added =publishdate= and =publishauthor= auto-columns |
| 23 Jan 2017: | don't report back an url parameter in the error message |
| 02 Sep 2016: | added default english translation files |
Expand Down
5 changes: 3 additions & 2 deletions lib/Foswiki/Plugins/JQDataTablesPlugin.pm
Expand Up @@ -12,8 +12,8 @@ use Foswiki::Plugins::JQueryPlugin ();
use Foswiki::Func ();
use Foswiki::AccessControlException ();

our $VERSION = '3.10';
our $RELEASE = '30 Aug 2017';
our $VERSION = '3.11';
our $RELEASE = '25 Sep 2017';
our $SHORTDESCRIPTION = 'JQuery based progressive enhancement of tables';

sub initPlugin {
Expand Down Expand Up @@ -73,6 +73,7 @@ sub restConnector {
eval "require $connectorClass";
if ($@) {
printRESTResult($response, 500, "ERROR: loading connector");
#print STDERR "ERROR loading connector $connectorClass: $@\n";
return '';
}

Expand Down
3 changes: 1 addition & 2 deletions lib/Foswiki/Plugins/JQDataTablesPlugin/DBCacheConnector.pm
Expand Up @@ -156,7 +156,6 @@ sub buildQuery {
} else {
push(@includeFilter, "lc($propertyName)" . ($regexFlag ? "=~" : "~") . "lc('$part')");
}

}

push @query, "(" . join(" AND ", @includeFilter) . ")"
Expand Down Expand Up @@ -192,7 +191,7 @@ sub search {

my $sort = $this->column2Property($params{sort});
my $hits = $db->dbQuery($params{query}, undef, $sort, $params{reverse});
return (0, 0, ()) unless $hits;
return (0, 0, []) unless $hits;

my $total = scalar($db->getKeys());
my $totalFiltered = $hits->count;
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQDataTablesPlugin/DataTables.pm
Expand Up @@ -319,7 +319,7 @@ sub handleDataTable {
$html5Data = join(" ", @$html5Data);
my $result = <<"HERE";
<literal>
<div class='jqDataTablesContainer' $html5Data' >
<div class='jqDataTablesContainer' $html5Data>
<table class='foswikiTable $theClass' $theWidth>
<thead>$thead</thead>
<tbody>
Expand Down

0 comments on commit dd7b0b9

Please sign in to comment.