Skip to content

Commit a23882b

Browse files
committed
Fixed bug rstaib#32
1 parent 0b5b12c commit a23882b

11 files changed

+21
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.1.2
4+
5+
### Bug Fixes
6+
- Fixed bug [#32](http://github.com/rstaib/jquery-bootgrid/issues/32)
7+
38
## 1.1.1
49

510
### Bug Fixes

bootgrid.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"accessibility",
1515
"bootstrap"
1616
],
17-
"version": "1.1.1",
17+
"version": "1.1.2",
1818
"author": {
1919
"name": "Rafael Staib",
2020
"email": "me@rafaelstaib.com",

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"accessibility",
1414
"bootstrap"
1515
],
16-
"version": "1.1.1",
16+
"version": "1.1.2",
1717
"authors": [
1818
{ "name": "Rafael Staib", "email": "me@rafaelstaib.com", "url": "http://www.rafaelstaib.com" }
1919
],

build/jQuery.Bootgrid.1.1.1.nupkg

-22.6 KB
Binary file not shown.

build/jQuery.Bootgrid.1.1.2.nupkg

22.6 KB
Binary file not shown.

build/jquery.bootgrid-1.1.1.zip

-24.2 KB
Binary file not shown.

build/jquery.bootgrid-1.1.2.zip

24.2 KB
Binary file not shown.

build/jquery.bootgrid.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Bootgrid v1.1.1 - 09/24/2014
2+
* jQuery Bootgrid v1.1.2 - 10/08/2014
33
* Copyright (c) 2014 Rafael Staib (http://www.jquery-bootgrid.com)
44
* Licensed under MIT http://www.opensource.org/licenses/MIT
55
*/
@@ -574,10 +574,10 @@
574574
rowAttr = "",
575575
rowCss = "";
576576

577-
$.each(rows, function (i, row)
577+
$.each(rows, function (index, row)
578578
{
579579
cells = "";
580-
rowAttr = " data-row-id=\"" + ((that.identifier == null) ? i : row[that.identifier]) + "\"";
580+
rowAttr = " data-row-id=\"" + ((that.identifier == null) ? index : row[that.identifier]) + "\"";
581581
rowCss = "";
582582

583583
if (selection)
@@ -663,8 +663,9 @@
663663
e.stopPropagation();
664664

665665
var $this = $(this),
666-
id = that.converter.from($this.data("row-id")),
667-
row = (this.identifier == null) ? that.currentRows[id] :
666+
id = (that.identifier == null) ? +$this.data("row-id") :
667+
that.converter.from($this.data("row-id")),
668+
row = (that.identifier == null) ? that.currentRows[id] :
668669
that.currentRows.first(function (item) { return item[that.identifier] === id; });
669670

670671
if (selection && that.options.rowSelect)

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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jquery-bootgrid",
33
"namespace": "jquery.bootgrid",
44
"title": "jQuery Bootgrid",
5-
"version": "1.1.1",
5+
"version": "1.1.2",
66
"description": "Nice, sleek and intuitive. A grid control especially designed for bootstrap.",
77
"homepage": "http://www.jquery-bootgrid.com",
88
"author": {

0 commit comments

Comments
 (0)