Skip to content

Commit edb7da7

Browse files
committed
Fix for AjaxBulk and Ajax refreshed
AjaxBulk and Ajax buttons where not refreshing the grid after posting. This bug was the result of the GriddlyButton extraction.
1 parent e56bd0e commit edb7da7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Griddly/Scripts/griddly.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,8 @@
912912
}).done($.proxy(function (data, status, xhr) {
913913
// TODO: handle errors
914914
// TODO: go back to first page?
915-
this.refresh();
915+
var griddly = this.$element.closest("[data-role=griddly]");
916+
griddly.griddly("refresh");
916917

917918
$(this.$element).triggerHandler("afterExecute", [data, status, xhr]);
918919
}, this));
@@ -960,7 +961,8 @@
960961
}).done($.proxy(function (data, status, xhr) {
961962
// TODO: handle errors
962963
// TODO: go back to first page?
963-
this.refresh();
964+
var griddly = this.$element.closest("[data-role=griddly]");
965+
griddly.griddly("refresh");
964966

965967
$(this.$element).triggerHandler("afterExecute", [data, status, xhr]);
966968
}, this));

0 commit comments

Comments
 (0)