Skip to content

Commit

Permalink
Item10640: fixes for EDITCELL
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@11497 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Apr 19, 2011
1 parent faf267f commit f1c583e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EditRowPlugin/data/System/EditRowPlugin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Another great Foswiki extension from the <a style="text-decoration:none" href="h
| Copyright: | &copy; 2007-2011 Wind<nop>River Inc. |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 2.1.3 (18 Apr 2011) | Foswiki:Tasks/Item10583: support for sort order in select cells |
| 2.1.3 (19 Apr 2011) | Foswiki:Tasks/Item10583: support for sort order in select cells Foswiki:Tasks/Item10583: fixes for EDITCELL |
| 2.1.2 (14 Mar 2011) | Foswiki:Tasks/Item2016: editor was not handling a table cell that contained only "0" correctly |
| 2.1.1 (25 Feb 2011) | Some minor tweaks |
| 2.1.0 (21 Feb 2011) | Foswiki:Tasks/Item5618: Foswiki:Tasks/Item5714: Foswiki:Tasks/Item5715: row moves and single-cell edits are now done client-side as much as possible. Row moves are drag and drop. Using JS lets us maintain the column numbering so that other plugins still work (e.g. table plugin init sort) as well as being a lot faster. Foswiki:Tasks/Item10363: Support button placement at the ends of table rows. Foswiki:Tasks/Item10388: broke out JEditable into a separate package |
Expand Down
8 changes: 7 additions & 1 deletion EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/Table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,13 @@ sub saveCell {

my $row = $urps->{erp_active_row};
my $col = $urps->{erp_active_col};
$this->{rows}->[ $row - 1 ]->{cols}->[ $col - 1 ]->{text} = $urps->{CELLDATA};
my $ot = $this->{rows}->[ $row - 1 ]->{cols}->[ $col - 1 ]->{text};
my $nt = $urps->{CELLDATA};
if ($ot =~ /(%EDITCELL{.*?}%)/) {
# Restore the %EDITCELL
$nt = $1 . $nt;
}
$this->{rows}->[ $row - 1 ]->{cols}->[ $col - 1 ]->{text} = $nt;
return $urps->{CELLDATA};
}

Expand Down

0 comments on commit f1c583e

Please sign in to comment.