Skip to content

Commit

Permalink
Validação
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulichi committed Feb 28, 2018
1 parent c1debd7 commit 72f0bce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/softgrid.src.js
Expand Up @@ -71,6 +71,9 @@
//sort rows of the grid
scope.sg_sort = function (col, colIndex, auto) {

if(angular.isUndefined(scope.filteredData))
return;

if(scope.filteredData.length > 0) {

if(scope.sg_orderBy !== null && scope.sg_orderByColIndex === colIndex && scope.reverse){
Expand Down
3 changes: 3 additions & 0 deletions dist/softgrid.js
Expand Up @@ -71,6 +71,9 @@
//sort rows of the grid
scope.sg_sort = function (col, colIndex, auto) {

if(angular.isUndefined(scope.filteredData))
return;

if(scope.filteredData.length > 0) {

if(scope.sg_orderBy !== null && scope.sg_orderByColIndex === colIndex && scope.reverse){
Expand Down

0 comments on commit 72f0bce

Please sign in to comment.