Ticket #912 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Cell merge broken

Reported by: guest Owned by: gogo
Priority: normal Milestone:
Component: Plugin_TableOperations Version: trunk
Severity: normal Keywords: table merge firefox
Cc:

Description

Clicking on a single cell in the table and then clicking on the merge button will produce the following error in Firefox:

Error: cells has no properties Source File: xinha/plugins/TableOperations/table-operations.js Line: 652

this relates to:

var cells = rows[i]; for (var j = 0; j < cells.length; ++j) {

// j && (HTML += "&nbsp;"); var cell = cells[j]; HTML += cell.innerHTML;

(i j) && (cell.parentNode.removeChild(cell));

}

In Internet Explorer 6 this will produce a prompt to ask how many cells to merge. (This is also broken in IE7, see ticket #908).

This is using the files as of revision [673]

David G. Paul (jedi58)

Change History

Changed 6 years ago by jedi58

just noticed the block of code has a FIXME for Mozilla, so this can probably be closed - probably a ticket somewhere for it that I couldn't find

Changed 6 years ago by ray

  • status changed from new to closed
  • resolution set to fixed

rev [675]: catch the error and prompt the user to select more than one cell

I think better would be to disable the button in this case, though

Changed 6 years ago by jedi58

  • status changed from closed to reopened
  • resolution deleted

This is now broken in IE6, have checked against the demo page for Xinha Nightly too and is also broken there.

Changed 6 years ago by guest

Note: bug caused by the addition of the dialog box - no matter how many cells are selected it just asks to select some.

Changed 6 years ago by ray

jedi58: What is broken, please specify. I have changed only the non-IE block

guest: works for me

Changed 6 years ago by ray

#908 contains a propable fix for this

Changed 6 years ago by wymsy

  • status changed from reopened to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.