Skip to content

Commit

Permalink
Add selection changed event
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Mar 25, 2018
1 parent 6f7f829 commit cd905c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.3.0")]
[assembly: AssemblyFileVersion("2.3.0")]
[assembly: AssemblyVersion("2.4.0")]
[assembly: AssemblyFileVersion("2.4.0")]
//[assembly: AssemblyInformationalVersion("2.0-alpha6")]
4 changes: 4 additions & 0 deletions Griddly/Scripts/griddly.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@
else
el.show(350);

el.find(".griddly-selection-singular").toggle(this.options.selectedRows == 1);
el.find(".griddly-selection-plural").toggle(this.options.selectedRows != 1);

$(this.$element).find("[data-enable-on-selection=true]").removeClass("disabled");
}
else
Expand All @@ -305,6 +308,7 @@
$(this.$element).find("[data-enable-on-selection=true]").addClass("disabled");
}

this.$element.triggerHandler("selectionchanged.griddly", [this.options.selectedRows]);
}, this);

var self = this;
Expand Down

0 comments on commit cd905c1

Please sign in to comment.