Skip to content

Commit

Permalink
Item13239: fixed some javascript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jan 30, 2015
1 parent 0a0d238 commit 36bcd5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQTablePlugin.pm
Expand Up @@ -10,7 +10,7 @@ use Foswiki::Plugins (); # For the API version
use Foswiki::Plugins::JQueryPlugin ();

our $VERSION = '1.14';
our $RELEASE = '24 November 2014';
our $RELEASE = '24 Nov 2014';
our $SHORTDESCRIPTION =
'Javascript implementation of the classic TablePlugin, using JQuery';
our $NO_PREFS_IN_TOPIC = 1;
Expand Down
Expand Up @@ -171,7 +171,7 @@

var p = false;

if ($.metadata && ($($headers[i]).metadata() && $($headers[i]).metadata().sorter)) {
if ($.metadata && $headers[i] && ($($headers[i]).metadata() && $($headers[i]).metadata().sorter)) {

p = getParserById($($headers[i]).metadata().sorter);

Expand Down
2 changes: 1 addition & 1 deletion pub/System/JQTablePlugin/tables.uncompressed.js
Expand Up @@ -213,7 +213,7 @@
// an empty tfoot even if there are footer rows
$table.children('tfoot')
.filter(function() {
return ($(this).chidren().length === 0)
return ($(this).children().length === 0)
})
.remove();

Expand Down

0 comments on commit 36bcd5d

Please sign in to comment.