Code so the hound doesn't yell.

pull/2597/head
Nicolai Moraru 10 years ago
parent bbf50e8e39
commit c13bc4fd14
  1. 12
      frontend/app/work_packages/directives/work-packages-table-directive.js

@ -193,10 +193,14 @@ module.exports = function(I18n, WorkPackagesTableService, $window, $timeout, fla
function mulipleRowsChecked(){ function mulipleRowsChecked(){
var counter = 0; var counter = 0;
for(var i = 0, l = scope.rows.length; i<l; i++) for (var i = 0, l = scope.rows.length; i<l; i++) {
if(scope.rows[i].checked) if (scope.rows[i].checked) {
if(++counter === 2) return true; if (++counter === 2) {
return false return true;
}
}
}
return false;
} }
scope.selectWorkPackage = function(row, $event) { scope.selectWorkPackage = function(row, $event) {

Loading…
Cancel
Save