Skip to content

Commit

Permalink
hard workaround for DeepSee
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed May 28, 2015
1 parent 726b133 commit 271b344
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LightPivotTable",
"author": "ZitRo",
"version": "1.1.0",
"version": "1.1.1",
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
"main": "test/testServer.js",
"repository": {
Expand Down
10 changes: 8 additions & 2 deletions source/js/PivotView.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,14 @@ PivotView.prototype.renderRawData = function (data) {
checkbox.setAttribute("type", "checkbox");
checkbox.checked = !!_.selectedRows[y];
th.setAttribute("style", "padding: 0 !important;");
checkbox.addEventListener("change", (function (y) { return function (e) {
_.selectRow.call(_, (e.srcElement || e.target).checked, y);
checkbox.addEventListener("click", (function (y) { return function (e) {
var element = e.srcElement || e.target;
e.preventDefault();
e.cancelBubble = true;
setTimeout(function () { // bad, but only working workaround for ISC DeepSee
element.checked = !element.checked;
_.selectRow.call(_, element.checked, y);
}, 1);
}})(y));
th.appendChild(checkbox);
tr.appendChild(th);
Expand Down

0 comments on commit 271b344

Please sign in to comment.