Skip to content

Commit 271b344

Browse files
hard workaround for DeepSee
1 parent 726b133 commit 271b344

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/PivotView.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,14 @@ PivotView.prototype.renderRawData = function (data) {
886886
checkbox.setAttribute("type", "checkbox");
887887
checkbox.checked = !!_.selectedRows[y];
888888
th.setAttribute("style", "padding: 0 !important;");
889-
checkbox.addEventListener("change", (function (y) { return function (e) {
890-
_.selectRow.call(_, (e.srcElement || e.target).checked, y);
889+
checkbox.addEventListener("click", (function (y) { return function (e) {
890+
var element = e.srcElement || e.target;
891+
e.preventDefault();
892+
e.cancelBubble = true;
893+
setTimeout(function () { // bad, but only working workaround for ISC DeepSee
894+
element.checked = !element.checked;
895+
_.selectRow.call(_, element.checked, y);
896+
}, 1);
891897
}})(y));
892898
th.appendChild(checkbox);
893899
tr.appendChild(th);

0 commit comments

Comments
 (0)