Skip to content

Commit b6425dd

Browse files
committed
Added comments
1 parent 2325fa4 commit b6425dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Griddly.Mvc/DapperGriddlyResult.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System;
33
using System.Collections.Generic;
44
using System.Data;
5-
using System.Data.SqlClient;
65
using System.Linq;
76
using System.Text;
87
using System.Web.Helpers;
@@ -105,10 +104,10 @@ public override IList<T> GetPage(int pageNumber, int pageSize, SortField[] sortF
105104
/* TODO: grab the count all at once like this:
106105
* TODO: also grab the other summary values in the _count branch too
107106
;WITH _data AS (
108-
select * from fin_lineitem where not oldpk is null
107+
select * from fin_lineitem where not oldpk is null
109108
),
110-
_count AS (
111-
SELECT COUNT(0) AS _AllRows FROM _data
109+
_count AS (
110+
SELECT COUNT(0) AS _AllRows FROM _data
112111
)
113112
SELECT * FROM _data CROSS APPLY _count ORDER BY CURRENT_TIMESTAMP OFFSET 50 ROWS FETCH NEXT 50 ROWS ONLY
114113
*/

Griddly/Scripts/griddly.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
this.$element.find("tr.griddly-filters:not(tr.griddly-filters-" + this.options.filterMode.toLowerCase() + ")").hide();
196196
this.$element.find("tr.griddly-filters-" + this.options.filterMode.toLowerCase()).show();
197197

198+
// TODO: only refresh if filter values changed
198199
this.refresh(true);
199200
}
200201
}, this));

0 commit comments

Comments
 (0)