Explorar o código

[search] Delete widgets when deleting a new column

Romain Rigaux %!s(int64=11) %!d(string=hai) anos
pai
achega
3122327bf7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/static/js/ko.layout.js

+ 1 - 1
desktop/core/static/js/ko.layout.js

@@ -37,7 +37,7 @@ var Column = function (size, rows) {
   };
   self.addRow = function (row, atBeginning) {
     if (typeof row == "undefined" || row == null) {
-      row = new Row([]);
+      row = new Row([], viewModel); // Hacky but needed when a new row is deleted
     }
     if (typeof atBeginning == "undefined" || atBeginning == null) {
       self.rows.push(row);