Skip to content

Commit

Permalink
body.onClick 이벤트 checkbox에서도 발생되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Mar 20, 2018
1 parent 92c52da commit 67b6ab2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/ax5ui-grid/dist/ax5grid.js
Expand Up @@ -2051,7 +2051,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
value: self.list[_column.dindex][column.key]
};

if (column.editor && column.editor.type == "checkbox") {
if (column.editor && column.editor.type === "checkbox") {
// todo : GRID.inlineEditor에서 처리 할수 있도록 구문 변경 필요.
var value = GRID.data.getValue.call(self, _column.dindex, _column.doindex, column.key),
checked = void 0,
Expand All @@ -2073,10 +2073,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
key: column.key, rowIndex: _column.rowIndex, colIndex: _column.colIndex,
editorConfig: column.editor.config, checked: checked
});
} else {
if (self.config.body.onClick) {
self.config.body.onClick.call(that);
}
}

if (self.config.body.onClick) {
self.config.body.onClick.call(that);
}
},
"rowSelector": function rowSelector(_column) {
Expand Down
2 changes: 1 addition & 1 deletion src/ax5ui-grid/dist/ax5grid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ax5ui-grid/dist/ax5grid.min.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/ax5ui-grid/src/modules/ax5grid-body.js
Expand Up @@ -318,7 +318,7 @@
value: self.list[_column.dindex][column.key]
};

if (column.editor && column.editor.type == "checkbox") { // todo : GRID.inlineEditor에서 처리 할수 있도록 구문 변경 필요.
if (column.editor && column.editor.type === "checkbox") { // todo : GRID.inlineEditor에서 처리 할수 있도록 구문 변경 필요.
let value = GRID.data.getValue.call(self, _column.dindex, _column.doindex, column.key),
checked, newValue;

Expand All @@ -338,10 +338,10 @@
key: column.key, rowIndex: _column.rowIndex, colIndex: _column.colIndex,
editorConfig: column.editor.config, checked: checked
});
} else {
if (self.config.body.onClick) {
self.config.body.onClick.call(that);
}
}

if (self.config.body.onClick) {
self.config.body.onClick.call(that);
}
},
"rowSelector": function (_column) {
Expand Down
4 changes: 2 additions & 2 deletions src/ax5ui-grid/test/inline-edit.html
Expand Up @@ -98,7 +98,7 @@
frozenRowIndex: 0,
showLineNumber: true,
showRowSelector: true,
multipleSelect: true,
multipleSelect: false,
lineNumberColumnWidth: 40,
rowSelectorColumnWidth: 28,
virtualScrollY: true,
Expand All @@ -120,7 +120,7 @@
},
*/
onClick: function () {
// console.log(this);
console.log(this);
// this.self.select(this.dindex);
},
onDataChanged: function () {
Expand Down

0 comments on commit 67b6ab2

Please sign in to comment.