Skip to content

Commit

Permalink
Added support for method chaining in autotab_magic and autotab_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathachew committed Aug 21, 2014
1 parent 4da304b commit 912d9d0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.7.1 (2014-08-21)

Bug fixes:

* fixes an issue when using deprecated methods `autotab_magic` and `autotab_filter` in a method chain


## 1.7 (2014-07-26)

Features:
Expand Down
2 changes: 1 addition & 1 deletion autotab.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"filter",
"autotab"
],
"version": "1.7.0",
"version": "1.7.1",
"author": {
"name": "Mathachew",
"url": "https://github.com/Mathachew"
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.autotab",
"version": "1.7.0",
"version": "1.7.1",
"description": "A jQuery plugin that provides auto-tabbing and filtering on text fields in a form.",
"main": [ "./js/jquery.autotab.min.js" ],
"homepage": "https://github.com/Mathachew/jquery-autotab",
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.autotab.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Autotab - jQuery plugin 1.7
* Autotab - jQuery plugin 1.7.1
* https://github.com/Mathachew/jquery-autotab
*
* Copyright (c) 2008, 2014 Matthew Miller
Expand Down Expand Up @@ -573,7 +573,7 @@

// Deprecated, here for backwards compatibility
$.fn.autotab_magic = function (focus) {
$(this).autotab();
return $(this).autotab();
};
$.fn.autotab_filter = function (options) {
var defaults = {};
Expand All @@ -585,7 +585,7 @@
$.extend(defaults, options);
}

$(this).autotab('filter', defaults);
return $(this).autotab('filter', defaults);
};

})(jQuery);
4 changes: 2 additions & 2 deletions js/jquery.autotab.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 912d9d0

Please sign in to comment.