[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:
parent
661accb890
commit
c7de0c06d5
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue