Skip to content

Commit

Permalink
Modified: wflow-core - Modified form grid element to trigger a change…
Browse files Browse the repository at this point in the history
… event when adding, editing and deleting a row.

git-svn-id: http://dev.joget.org/svn/jw-community/trunk@197 1bff935d-2fe2-40b7-b00f-c2aca69a7612
  • Loading branch information
julian committed Oct 19, 2011
1 parent f508910 commit f1e3282
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wflow-core/src/main/resources/resources/js/jquery.formgrid.js
Expand Up @@ -51,6 +51,11 @@
if (value == "") {
value = "Click to edit";
}
// trigger change
var el = $(this).parent().parent().parent().parent().parent();
setTimeout(function() {
$(el).trigger("change");
}, 100);
return value;
},

Expand All @@ -73,6 +78,9 @@
table.append(newRow);

methods.initCells.apply(this);

// trigger change
$(this).trigger("change");
});
},

Expand All @@ -96,6 +104,10 @@
table.find(".grid-row").each(function(rowIndex, row) {
methods.updateInput(row, rowIndex);
});

// trigger change
var el = table.parent();
$(el).trigger("change");
}
return false;
}
Expand Down

0 comments on commit f1e3282

Please sign in to comment.