|
|
@ -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) { |
|
|
|