|
23 | 23 | if (this.options.onRefresh)
|
24 | 24 | this.options.onRefresh(this, 0, this.options.count > this.options.pageSize ? this.options.pageSize : this.options.count, this.options.count, null);
|
25 | 25 |
|
26 |
| - this.$element.trigger("init.griddly", |
| 26 | + this.$element.trigger("init.griddly", this.$element, |
27 | 27 | {
|
28 | 28 | start: 0,
|
29 | 29 | pageSize: this.options.count > this.options.pageSize ? this.options.pageSize : this.options.count,
|
|
566 | 566 |
|
567 | 567 | $(".griddly-filters-inline input, .griddly-filters-inline select", this.$element).on("change", $.proxy(function (event)
|
568 | 568 | {
|
569 |
| - this.$element.trigger("filterchange.griddly", event.target); |
| 569 | + this.$element.trigger("filterchange.griddly", this.$element, event.target); |
570 | 570 |
|
571 | 571 | if (this.options.autoRefreshOnFilter)
|
572 | 572 | this.refresh(true);
|
|
752 | 752 |
|
753 | 753 | refresh: function(resetPage)
|
754 | 754 | {
|
755 |
| - this.$element.trigger("beforerefresh.griddly"); |
| 755 | + this.$element.trigger("beforerefresh.griddly", this.$element); |
756 | 756 |
|
757 | 757 | if (!this.options.url)
|
758 | 758 | {
|
|
822 | 822 | $(e).prop("checked", true);
|
823 | 823 | });
|
824 | 824 |
|
825 |
| - this.$element.trigger("refresh.griddly", |
| 825 | + this.$element.trigger("refresh.griddly", this.$element, |
826 | 826 | {
|
827 | 827 | start: startRecord,
|
828 | 828 | pageSize: currentPageSize,
|
|
844 | 844 | window.location = url;
|
845 | 845 | }
|
846 | 846 |
|
847 |
| - this.$element.trigger("error.griddly"); |
| 847 | + this.$element.trigger("error.griddly", this.$element); |
848 | 848 | }, this));
|
849 | 849 | },
|
850 | 850 |
|
|
0 commit comments