- updateChangeset(e.target.form, data.method, data.url, true);
- });
-
- content.find(".action-button").on("click", function (e) {
- e.preventDefault();
- var data = $(e.target).data();
- updateChangeset(e.target.form, data.method, data.url);
+ var include_data = e.target.name === "comment";
+ updateChangeset(data.method, data.url, include_data);