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(){
var counter = 0;
for(var i = 0, l = scope.rows.length; i<l; i++)
if(scope.rows[i].checked)
if(++counter === 2) return true;
return false
for (var i = 0, l = scope.rows.length; i<l; i++) {
if (scope.rows[i].checked) {
if (++counter === 2) {
return true;
}
}
}
return false;
}
scope.selectWorkPackage = function(row, $event) {

Loading…
Cancel
Save