Skip to content

Commit 233e7cb

Browse files
committed
Merge pull request #8 from ebalders/master
Fix for AjaxBulk and Ajax refreshed
2 parents e56bd0e + edb7da7 commit 233e7cb

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)