Skip to content

Commit 95d9382

Browse files
committed
Griddly events pass reference to element
1 parent bdd72c5 commit 95d9382

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("1.0.77.2")]
19-
[assembly: AssemblyFileVersion("1.0.77.2")]
18+
[assembly: AssemblyVersion("1.0.77.3")]
19+
[assembly: AssemblyFileVersion("1.0.77.3")]

Griddly/Scripts/griddly.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
if (this.options.onRefresh)
2424
this.options.onRefresh(this, 0, this.options.count > this.options.pageSize ? this.options.pageSize : this.options.count, this.options.count, null);
2525

26-
this.$element.trigger("init.griddly",
26+
this.$element.trigger("init.griddly", this.$element,
2727
{
2828
start: 0,
2929
pageSize: this.options.count > this.options.pageSize ? this.options.pageSize : this.options.count,
@@ -566,7 +566,7 @@
566566

567567
$(".griddly-filters-inline input, .griddly-filters-inline select", this.$element).on("change", $.proxy(function (event)
568568
{
569-
this.$element.trigger("filterchange.griddly", event.target);
569+
this.$element.trigger("filterchange.griddly", this.$element, event.target);
570570

571571
if (this.options.autoRefreshOnFilter)
572572
this.refresh(true);
@@ -752,7 +752,7 @@
752752

753753
refresh: function(resetPage)
754754
{
755-
this.$element.trigger("beforerefresh.griddly");
755+
this.$element.trigger("beforerefresh.griddly", this.$element);
756756

757757
if (!this.options.url)
758758
{
@@ -822,7 +822,7 @@
822822
$(e).prop("checked", true);
823823
});
824824

825-
this.$element.trigger("refresh.griddly",
825+
this.$element.trigger("refresh.griddly", this.$element,
826826
{
827827
start: startRecord,
828828
pageSize: currentPageSize,
@@ -844,7 +844,7 @@
844844
window.location = url;
845845
}
846846

847-
this.$element.trigger("error.griddly");
847+
this.$element.trigger("error.griddly", this.$element);
848848
}, this));
849849
},
850850

0 commit comments

Comments
 (0)