Skip to content

Commit 12c640c

Browse files
committed
Fix js error
1 parent 8a452b2 commit 12c640c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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("3.0.4")]
19-
[assembly: AssemblyFileVersion("3.0.4")]
18+
[assembly: AssemblyVersion("3.0.5")]
19+
[assembly: AssemblyFileVersion("3.0.5")]
2020
//[assembly: AssemblyInformationalVersion("2.5-filters")]

Griddly/Scripts/griddly.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,8 +1498,10 @@
14981498

14991499
resetFilterValues: function (refresh)
15001500
{
1501-
this.$element.find("form .transient").remove();
1502-
this.$element.find("form")[0].reset();
1501+
if (this.$element.find("form").length)
1502+
{
1503+
this.$element.find("form")[0].reset();
1504+
}
15031505

15041506
this.setSortFields(this.options.defaultSort);
15051507
this.setFilterValues(this.options.filterDefaults, null, true, true);
@@ -1512,8 +1514,6 @@
15121514

15131515
clearFilterValues: function (refresh)
15141516
{
1515-
this.$element.find("form .transient").remove();
1516-
15171517
this.setFilterValues({}, false, true, true);
15181518

15191519
this.triggerOrQueue(this.$element, "resetfilters.griddly");

0 commit comments

Comments
 (0)