Skip to content

Commit cd905c1

Browse files
committed
Add selection changed event
1 parent 6f7f829 commit cd905c1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
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("2.3.0")]
19-
[assembly: AssemblyFileVersion("2.3.0")]
18+
[assembly: AssemblyVersion("2.4.0")]
19+
[assembly: AssemblyFileVersion("2.4.0")]
2020
//[assembly: AssemblyInformationalVersion("2.0-alpha6")]

Griddly/Scripts/griddly.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@
291291
else
292292
el.show(350);
293293

294+
el.find(".griddly-selection-singular").toggle(this.options.selectedRows == 1);
295+
el.find(".griddly-selection-plural").toggle(this.options.selectedRows != 1);
296+
294297
$(this.$element).find("[data-enable-on-selection=true]").removeClass("disabled");
295298
}
296299
else
@@ -305,6 +308,7 @@
305308
$(this.$element).find("[data-enable-on-selection=true]").addClass("disabled");
306309
}
307310

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

310314
var self = this;

0 commit comments

Comments
 (0)