Skip to content

Commit

Permalink
Correção
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulichi committed Feb 8, 2018
1 parent 78cb5e0 commit 40b5381
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
7 changes: 4 additions & 3 deletions build/softgrid.src.js
Expand Up @@ -599,6 +599,8 @@
return;
}

_getFilteredData();

if(scope.sg_orderBySaved){

scope.sg_orderByColIndex = -1;
Expand All @@ -625,8 +627,6 @@
}
}

_getFilteredData();

_atualizarPaginacao();
});

Expand Down Expand Up @@ -686,7 +686,8 @@

scope.$watch('sg_filter', function(){

_getFilteredData();
if(scope.sg_filter !== "")
_getFilteredData();

})

Expand Down
7 changes: 4 additions & 3 deletions dist/softgrid.js
Expand Up @@ -599,6 +599,8 @@
return;
}

_getFilteredData();

if(scope.sg_orderBySaved){

scope.sg_orderByColIndex = -1;
Expand All @@ -625,8 +627,6 @@
}
}

_getFilteredData();

_atualizarPaginacao();
});

Expand Down Expand Up @@ -686,7 +686,8 @@

scope.$watch('sg_filter', function(){

_getFilteredData();
if(scope.sg_filter !== "")
_getFilteredData();

})

Expand Down
2 changes: 1 addition & 1 deletion dist/softgrid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mock/index.html
Expand Up @@ -47,7 +47,7 @@ <h1>Softgrid</h1>
<hr>
<div ng-controller="TodoListController as vm">

<softgrid cols="vm.colunas" data="vm.data" actions="vm.acoes" sg-controls="vm.controles" sg-menu="vm.menu" hide="vm.hide"> </softgrid>
<softgrid cols="vm.colunas" data="vm.data" actions="vm.acoes" sg-controls="vm.controles" sg-menu="vm.menu" hide="vm.hide" sg-store="vm.store"> </softgrid>

</div>

Expand Down
7 changes: 4 additions & 3 deletions src/softgrid.js
Expand Up @@ -599,6 +599,8 @@
return;
}

_getFilteredData();

if(scope.sg_orderBySaved){

scope.sg_orderByColIndex = -1;
Expand All @@ -625,8 +627,6 @@
}
}

_getFilteredData();

_atualizarPaginacao();
});

Expand Down Expand Up @@ -686,7 +686,8 @@

scope.$watch('sg_filter', function(){

_getFilteredData();
if(scope.sg_filter !== "")
_getFilteredData();

})

Expand Down

0 comments on commit 40b5381

Please sign in to comment.