Skip to content

Commit

Permalink
jtable fix so toolbar items click work again
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed Jan 3, 2025
1 parent 3ae1e51 commit a4227d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/jtable/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.22
1.0.23
4 changes: 2 additions & 2 deletions js/jtable/jquery.jtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1113,12 +1113,12 @@ THE SOFTWARE.
.addClass('jtable-toolbar-item-text').appendTo($toolBarItem);
}

// click event
// click event ("click" is a function defined for the item in the options list, not a triggered jquery event)
if (item.click) {
$toolBarItem.on("click", function (e) {
e.preventDefault();
e.stopPropagation();
item.trigger("click");
item.click(); // call the defined function
});
}

Expand Down
2 changes: 1 addition & 1 deletion js/jtable/jquery.jtable.min.js

Large diffs are not rendered by default.

0 comments on commit a4227d2

Please sign in to comment.