From 3111c74eda6d467b003e2ae374a9da6b9546bf6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Wed, 30 Mar 2011 15:05:58 +0000 Subject: [PATCH] Fixed selection issues in grid and fixed problem with checkbox data being checked with == and not === --- phpgwapi/js/egw_action/egw_grid_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/js/egw_action/egw_grid_view.js b/phpgwapi/js/egw_action/egw_grid_view.js index dd88c6a167..2e6c25fc8f 100644 --- a/phpgwapi/js/egw_action/egw_grid_view.js +++ b/phpgwapi/js/egw_action/egw_grid_view.js @@ -1434,7 +1434,7 @@ function egwGridViewRow_doInsertIntoDOM() this.parentNode.append(td); // Assign the click event to the column -// td.mousedown(egwPreventSelect); + td.mousedown(egwPreventSelect); if (col.type == EGW_COL_TYPE_CHECKBOX) { this.checkbox = $(document.createElement("input")); @@ -1451,7 +1451,7 @@ function egwGridViewRow_doInsertIntoDOM() else { td.click({"item": this, "col": col.id}, function(e) { -// this.onselectstart = null; + this.onselectstart = null; if (!e.data.item.checkbox || this != e.data.item.checkbox.context) { e.data.item._columnClick(egwGetShiftState(e), e.data.col); @@ -1625,7 +1625,7 @@ function egwGridViewRow_doUpdateData(_immediate) else if (col.type == EGW_COL_TYPE_CHECKBOX) { this.checkbox.attr("checked", - (data[col.id].data == 0) ? + (data[col.id].data === 0) ? egwBitIsSet(this.aoi.getState(), EGW_AO_STATE_SELECTED) : data[col.id].data); }