|
@@ -50,7 +50,7 @@ angular.module('luticateUtils')
|
50
|
50
|
}
|
51
|
51
|
}
|
52
|
52
|
if ($scope.tableOptions.canClick == null) {
|
53
|
|
- $scope.tableOptions.canClick = function()
|
|
53
|
+ $scope.tableOptions.canClick = function(item)
|
54
|
54
|
{
|
55
|
55
|
return false;
|
56
|
56
|
}
|
|
@@ -64,7 +64,7 @@ angular.module('luticateUtils')
|
64
|
64
|
var onItemClicked = $scope.tableOptions.onItemClicked;
|
65
|
65
|
$scope.tableOptions.onItemClicked = function(item)
|
66
|
66
|
{
|
67
|
|
- if ($scope.tableOptions.canClick()){
|
|
67
|
+ if ($scope.tableOptions.canClick(item)){
|
68
|
68
|
onItemClicked(item);
|
69
|
69
|
}
|
70
|
70
|
};
|
|
@@ -187,7 +187,7 @@ angular.module('luticateUtils').run(['$templateCache', function($templateCache)
|
187
|
187
|
'</tr>' +
|
188
|
188
|
'</thead>' +
|
189
|
189
|
'<tbody>' +
|
190
|
|
-'<tr ng-repeat="item in items.Data" ng-style="{\'cursor\': tableOptions.canClick() ? \'pointer\' : \'\'}" ng-click="onItemClicked(item)">' +
|
|
190
|
+'<tr ng-repeat="item in items.Data" ng-style="{\'cursor\': tableOptions.canClick(item) ? \'pointer\' : \'\'}" ng-click="onItemClicked(item)">' +
|
191
|
191
|
' <td ng-show="tableOptions.canCheck()">' +
|
192
|
192
|
' <input name="tableOptions.checkedItems[]" type="checkbox" ng-checked="isItemChecked(item)"' +
|
193
|
193
|
' ng-click="$event.stopPropagation();toggleCheckedItem(item)" >' +
|