Skip to content

Commit 8d372b9

Browse files
committed
First draft of version 1.1.0
1 parent fa7cdde commit 8d372b9

18 files changed

+36
-215
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.1.0
4+
- Added an option to define whether the search should be case sensitive or insensitive.
5+
- Custom header and body row class names (solved issue [#7](http://github.com/rstaib/jquery-bootgrid/issues/7))
6+
- Added `data-toggle` attribute
7+
- Added request and response converter (solved issue [#3](http://github.com/rstaib/jquery-bootgrid/issues/3))
8+
- Added WIA-ARIA busy attribute to indicate that the table is loading
9+
- Metadata for rows
10+
311
## 1.0.0
412
- Public functions for dynamic manipulation such as append and remove row(s)
513
- Client-side data support (without ajax calls)
@@ -9,7 +17,7 @@
917
- Added type converters per column (`data-converter="string|numeric|custom"`)
1018
- Fixed multi sorting issue
1119
- Added new events (selected, deselected, appended, removed, cleared, initialize, initialized)
12-
- Added column attribute `data-header-align` to set the alignment of the header cell independent from the body cells (solved issue #10)
20+
- Added column attribute `data-header-align` to set the alignment of the header cell independent from the body cells (solved issue [#10](http://github.com/rstaib/jquery-bootgrid/issues/10))
1321

1422
### Breaking Changes
1523
- `data-custom` is now `data-formatter` and instead of being a `bool` it is a event name

bootgrid.jquery.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"accessibility",
1515
"bootstrap"
1616
],
17-
"version": "1.0.0",
17+
"version": "1.1.0-beta",
1818
"author": {
1919
"name": "Rafael Staib",
2020
"email": "me@rafaelstaib.com",
@@ -29,6 +29,6 @@
2929
"download": "http://www.jquery-bootgrid.com",
3030
"demo": "http://www.jquery-bootgrid.com/Examples",
3131
"dependencies": {
32-
"jquery": ">=1.4.4"
32+
"jquery": ">=1.9.0"
3333
}
3434
}

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"accessibility",
1414
"bootstrap"
1515
],
16-
"version": "1.0.0",
16+
"version": "1.1.0-beta",
1717
"authors": [
1818
{ "name": "Rafael Staib", "email": "me@rafaelstaib.com", "url": "http://www.rafaelstaib.com" }
1919
],
@@ -42,7 +42,7 @@
4242
"bootgrid.jquery.json"
4343
],
4444
"dependencies": {
45-
"jquery": "1.10.2",
46-
"bootstrap": "3.1.1"
45+
"jquery": ">=1.9.0",
46+
"bootstrap": ">=3.1.1"
4747
}
4848
}

build/jQuery.Bootgrid.1.0.0.nupkg

-20 KB
Binary file not shown.
20.1 KB
Binary file not shown.

build/jquery.bootgrid-1.0.0.zip

-20.8 KB
Binary file not shown.
20.8 KB
Binary file not shown.

build/jquery.bootgrid.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Bootgrid v1.0.0 - 09/01/2014
2+
* jQuery Bootgrid v1.1.0-beta - 09/01/2014
33
* Copyright (c) 2014 Rafael Staib (http://www.jquery-bootgrid.com)
44
* Licensed under MIT http://www.opensource.org/licenses/MIT
55
*/
@@ -163,12 +163,13 @@
163163

164164
function containsPhrase(row)
165165
{
166-
var column;
166+
var column,
167+
searchPattern = new RegExp(that.searchPhrase, "gi");
167168

168169
for (var i = 0; i < that.columns.length; i++)
169170
{
170171
column = that.columns[i];
171-
if (column.visible && column.converter.to(row[column.id]).indexOf(that.searchPhrase) > -1)
172+
if (column.visible && column.converter.to(row[column.id]).search(searchPattern) > -1)
172173
{
173174
return true;
174175
}
@@ -221,7 +222,8 @@
221222
rows = rows.page(this.current, this.rowCount);
222223
}
223224

224-
// todo: comment why timeout is needed here (event loaded)
225+
// todo: improve the following comment
226+
// setTimeout decouples the initialization so that adding event handlers happens before
225227
window.setTimeout(function () { update(rows, total); }, 10);
226228
}
227229
}

build/jquery.bootgrid.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/jquery-1.4.4.min.js

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)