Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
-  prepop singleLoad can now load data to table
  • Loading branch information
temi committed Apr 4, 2024
1 parent 1e620de commit 4176710
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions grails-app/assets/javascripts/forms-knockout-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,8 @@
propTarget.loadData(value);
} else if (_.isFunction(propTarget.load)) {
propTarget.load(value);
} else if (propTarget && propTarget.$parent && _.isFunction(propTarget.$parent["load" + propTarget.listName])) {
propTarget.$parent["load" + propTarget.listName](value);
} else if (ko.isObservable(propTarget)) {
propTarget(value);
} else {
Expand Down
2 changes: 1 addition & 1 deletion grails-app/assets/javascripts/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ function orEmptyArray(v) {
var parent = context.parent;
var listName = context.listName;
var modelName = context.outputModel.name;

self.$parent = context.parent;
self.listName = listName;
self.addRow = function (data) {
var newItem = self.newItem(data, self.rowCount());
Expand Down

0 comments on commit 4176710

Please sign in to comment.