Skip to content

Commit cc1a1e2

Browse files
committed
Fixed bug when creates the form wrapped on table.
1 parent d87e4ff commit cc1a1e2

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ $('#example5').Tabledit({
118118
```
119119

120120
## Changelog
121+
v1.1.1 (2015/03/05):
122+
* Fixed bug when creates the form wrapped on table.
123+
121124
v1.1.0 (2015/02/08):
122125
* Added toolbox column with edit and remove buttons.
123126
* Added effect on table row when ajax request fails.

jquery.tabledit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* Tabledit v1.1.0 (https://github.com/markcell/jQuery-Tabledit)
2+
* Tabledit v1.1.1 (https://github.com/markcell/jQuery-Tabledit)
33
* Copyright (c) 2015 Celso Marques
44
* Licensed under MIT (https://github.com/markcell/jQuery-Tabledit/blob/master/LICENSE)
55
*/
66

77
/**
88
* @description Inline editor for HTML tables
9-
* @version 1.1.0
9+
* @version 1.1.1
1010
* @author Celso Marques
1111
*/
1212

@@ -73,7 +73,7 @@ if (typeof jQuery === 'undefined') {
7373
var Draw = {
7474
form: function(url) {
7575
// Create form wrapped on table if not exists.
76-
if (!$table.parent('form.tabledit-form').length > 0) {
76+
if (!$table.parents('form.tabledit-form').length > 0) {
7777
$table.wrap('<form action="' + url + '" method="post" class="tabledit-form"></form>');
7878
}
7979
},

jquery.tabledit.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.

0 commit comments

Comments
 (0)