Skip to content

Commit

Permalink
Rearranging if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonricaurte committed Jul 1, 2013
1 parent 5863c9d commit 4338ef6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build/ng-grid.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ng-grid JavaScript Library
* Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
* Compiled At: 06/30/2013 20:57
* Compiled At: 06/30/2013 21:00
***********************************************/
(function(window, $) {
'use strict';
Expand Down Expand Up @@ -3229,7 +3229,7 @@ ngGridDirectives.directive('ngInput', [function() {
}
break;
case 13: // Enter (Leave Field)
if(scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 && scope.enableCellEditOnFocus || scope.enableCellEdit) {
if(scope.enableCellEditOnFocus && scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 || scope.enableCellEdit) {
elm.blur();
}
break;
Expand Down
4 changes: 2 additions & 2 deletions build/ng-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ng-grid JavaScript Library
* Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
* Compiled At: 06/30/2013 20:57
* Compiled At: 06/30/2013 21:00
***********************************************/
(function(window, $) {
'use strict';
Expand Down Expand Up @@ -2875,7 +2875,7 @@ ngGridDirectives.directive('ngInput', [function() {
}
break;
case 13:
if(scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 && scope.enableCellEditOnFocus || scope.enableCellEdit) {
if(scope.enableCellEditOnFocus && scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 || scope.enableCellEdit) {
elm.blur();
}
break;
Expand Down
2 changes: 1 addition & 1 deletion build/ng-grid.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ng-grid-2.0.7.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ng-grid JavaScript Library
* Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
* Compiled At: 06/30/2013 20:57
* Compiled At: 06/30/2013 21:00
***********************************************/
(function(window, $) {
'use strict';
Expand Down Expand Up @@ -3229,7 +3229,7 @@ ngGridDirectives.directive('ngInput', [function() {
}
break;
case 13: // Enter (Leave Field)
if(scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 && scope.enableCellEditOnFocus || scope.enableCellEdit) {
if(scope.enableCellEditOnFocus && scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 || scope.enableCellEdit) {
elm.blur();
}
break;
Expand Down
2 changes: 1 addition & 1 deletion ng-grid-2.0.7.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/directives/ng-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ngGridDirectives.directive('ngInput', [function() {
}
break;
case 13: // Enter (Leave Field)
if(scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 && scope.enableCellEditOnFocus || scope.enableCellEdit) {
if(scope.enableCellEditOnFocus && scope.totalFilteredItemsLength() - 1 > scope.row.rowIndex && scope.row.rowIndex > 0 || scope.enableCellEdit) {
elm.blur();
}
break;
Expand Down

0 comments on commit 4338ef6

Please sign in to comment.