Skip to content

Commit

Permalink
fix 328
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzofox3 committed Mar 10, 2015
1 parent 5c53ef2 commit a1dec99
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-smart-table",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/lorenzofox3/Smart-Table",
"authors": [
"lorenzofox3 <[email protected]>"
Expand Down
4 changes: 4 additions & 0 deletions changeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ function(tableState, tableController){
* use interpolation rather than binding for st-search directive (to avoid the creation of isolated scope)

**This is a breaking change as now, you will have to remove the single quote around the predicate property name, and if you were using a binding, you'll have to interpolate it with the curly brace notation**

## version 2.0.1

* fix #328
10 changes: 5 additions & 5 deletions dist/smart-table.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/smart-table.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-smart-table",
"version": "2.0.0",
"version": "2.0.1",
"description": "",
"main": "dist/smart-table.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/stSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ng.module('smart-table')
var promise = null;
var throttle = attr.stDelay || stConfig.search.delay;


attr.$observe('stSearch', function (newValue, oldValue) {
if (newValue !== oldValue) {
var input = element[0].value;
if (newValue !== oldValue && input) {
ctrl.tableState().search = {};
tableCtrl.search(element[0].value || '', newValue);
tableCtrl.search(input, newValue);
}
});

Expand Down

0 comments on commit a1dec99

Please sign in to comment.