[GB.WEB.FORM]

* BUG: WebTable: Clicking inside a row in multiple selection row now just toggle that row. It does not unselect all the other rows anymore.
* BUG: WebTable: Selection works correctly again with Firefox.


git-svn-id: svn://localhost/gambas/trunk@8090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2017-02-14 00:44:03 +00:00
parent 661accb890
commit c7de0c06d5
2 changed files with 4 additions and 4 deletions

View file

@ -139,7 +139,7 @@ Private Sub PrintBody(iStart As Integer, iEnd As Integer)
'Print Me._GetUpdateJS("onclick", "$" & CStr(iRow));
Print " onclick=\"gw.table.select("; JS(Me.Name); ","; iRow; ");\"";
Else
Print " onclick=\"gw.table.toggle("; JS(Me.Name); ","; iRow; ");\"";
Print " onclick=\"gw.table.check("; JS(Me.Name); ","; iRow; ");\"";
Endif
Print Me._GetEventJS("ondblclick", "DblClick");

View file

@ -1046,10 +1046,10 @@ gw = {
check: function(id, row)
{
var elt = $(id + ':' + row);
if (event.target.tagName == 'TD')
elt.checked = !elt.checked;
//if (event.target.tagName == 'TD')
elt.checked = !elt.checked;
gw.update(id, '!' + row, elt.checked);
event.stopPropagation();
//event.stopPropagation();
},
toggle: function(id, row)