Skip to content

Commit 2325fa4

Browse files
committed
Conflicts: Griddly/Scripts/griddly.js Griddly/Views/Shared/Griddly/Griddly.cshtml
2 parents 2fee85c + 388f3cc commit 2325fa4

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
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.3")]
19-
[assembly: AssemblyFileVersion("1.0.77.3")]
18+
[assembly: AssemblyVersion("1.0.79.0")]
19+
[assembly: AssemblyFileVersion("1.0.79.0")]

Griddly.Mvc/GriddlyResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public virtual long GetCount()
241241
return _result.Count();
242242
}
243243

244-
static IQueryable<T> ApplySortFields(IQueryable<T> source, SortField[] sortFields)
244+
protected static IQueryable<T> ApplySortFields(IQueryable<T> source, SortField[] sortFields)
245245
{
246246
IOrderedQueryable<T> sortedQuery = null;
247247

Griddly.Mvc/GriddlySettingsResult.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ public static GriddlySettings GetSettings(ControllerContext context, string view
6161
{
6262
throw;
6363
}
64-
catch
65-
{
66-
return null;
67-
}
6864
}
6965

7066
class EmptyHttpContext : HttpContextBase

Griddly/Scripts/griddly.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@
183183

184184
$("form .grid_searchreset", this.$element).on("click", $.proxy(function (event)
185185
{
186-
this.$element.find("form .transient").remove();
187-
this.$element.find("form")[0].reset();
188-
189-
this.refresh(true);
186+
this.resetFilterValues();
190187
}, this));
191188

192189
$("a.btn-search", this.$element).on("click", $.proxy(function (event)
@@ -742,6 +739,18 @@
742739
this.refresh(true);
743740
},
744741

742+
resetFilterValues: function ()
743+
{
744+
// TODO: get defaults?
745+
746+
this.$element.find("form .transient").remove();
747+
this.$element.find("form")[0].reset();
748+
749+
this.$element.trigger("resetfilters.griddly", this.$element);
750+
751+
this.refresh(true);
752+
},
753+
745754
buildRequest: function(paging)
746755
{
747756
var postData = this.getFilterValues();

0 commit comments

Comments
 (0)