Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
maettu committed Apr 28, 2014
1 parent a8578ab commit ff9cb61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/source/class/dbtoria/module/database/TablePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ qx.Class.define("dbtoria.module.database.TablePage", {
var tm = this.__table.getTableModel();
var row = sm.getSelectedRanges()[0].minIndex;
tm.removeRow(row);
// TODO find out how this can highlight the next row
sm.resetSelection();
// select next row
var rowInfo = tm.getRowData(row);
Expand All @@ -522,9 +523,10 @@ qx.Class.define("dbtoria.module.database.TablePage", {
// still fails when there is only one row..
if (!rowInfo){
this._currentId = null;
return;
}
this.__currentId = rowInfo['ROWINFO'][0];
else {
this.__currentId = rowInfo['ROWINFO'][0];
}
},

__cloneRecordHandler: function(e) {
Expand Down Expand Up @@ -636,6 +638,9 @@ qx.Class.define("dbtoria.module.database.TablePage", {
if (currentSelection != null && currentSelection != undefined) {
currentRow = currentSelection.minIndex;
}
else{
currentRow = 0;
}

selMod.iterateSelection(function(ind) {
row = model.getRowData(ind);
Expand Down

0 comments on commit ff9cb61

Please sign in to comment.