فهرست منبع

[search] Delete widgets when deleting a new column

Romain Rigaux 11 سال پیش
والد
کامیت
3122327bf7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);