From 12b0ee7b53b7f55de8b2921fdff7136ca559fd37 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 19 Jul 2021 11:49:03 +0800 Subject: [PATCH] comment out row/cell selection requirement for cellclick - no idea why that was done originally --- Roo/bootstrap/Table.js | 11 +++++------ docs/src/Roo_bootstrap_DateField.js.html | 8 ++++---- roojs-bootstrap-debug.js | 8 ++++---- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 360b554cba..2cb7520fb9 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -494,15 +494,14 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { var rowIndex = this.getRowIndex(row); // why??? - should these not be based on SelectionModel? - if(this.cellSelection){ + //if(this.cellSelection){ this.fireEvent('cellclick', this, cell, rowIndex, cellIndex, e); - } + //} - if(this.rowSelection){ + //if(this.rowSelection){ this.fireEvent('rowclick', this, row, rowIndex, e); - } - - + //} + }, onDblClick : function(e,el) diff --git a/docs/src/Roo_bootstrap_DateField.js.html b/docs/src/Roo_bootstrap_DateField.js.html index 2dbef208ef..bccacdd2a6 100644 --- a/docs/src/Roo_bootstrap_DateField.js.html +++ b/docs/src/Roo_bootstrap_DateField.js.html @@ -727,10 +727,10 @@ break; case 'span': if (className.indexOf('disabled') < 0) { - if (!this.viewDate) { - this.viewDate = new Date(); - } - this.viewDate.setUTCDate(1); + if (!this.viewDate) { + this.viewDate = new Date(); + } + this.viewDate.setUTCDate(1); if (className.indexOf('month') > -1) { this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(html)); } else { diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index f547fb4135..0d7efc8c01 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -21954,10 +21954,10 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { break; case 'span': if (className.indexOf('disabled') < 0) { - if (!this.viewDate) { - this.viewDate = new Date(); - } - this.viewDate.setUTCDate(1); + if (!this.viewDate) { + this.viewDate = new Date(); + } + this.viewDate.setUTCDate(1); if (className.indexOf('month') > -1) { this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(html)); } else { -- 2.39.2