File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/RJP.MultiUrlPicker.Web.UI Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 21
21
$scope . $watch ( function ( ) {
22
22
return this . renderModel . length
23
23
} . bind ( this ) , function ( ) {
24
- $scope . multiUrlPickerForm . minCount . $setValidity ( 'minCount' , $scope . model . config && $scope . model . config . minNumberOfItems && + $scope . model . config . minNumberOfItems <= this . renderModel . length )
25
- $scope . multiUrlPickerForm . maxCount . $setValidity ( "maxCount" , $scope . model . config && $scope . model . config . maxNumberOfItems && + $scope . model . config . maxNumberOfItems >= this . renderModel . length )
26
-
24
+ if ( $scope . model . config && $scope . model . config . minNumberOfItems ) {
25
+ $scope . multiUrlPickerForm . minCount . $setValidity ( 'minCount' , + $scope . model . config . minNumberOfItems <= this . renderModel . length )
26
+ }
27
+ if ( $scope . model . config && $scope . model . config . maxNumberOfItems ) {
28
+ $scope . multiUrlPickerForm . maxCount . $setValidity ( "maxCount" , + $scope . model . config . maxNumberOfItems >= this . renderModel . length )
29
+ }
27
30
this . sortableOptions . disabled = this . renderModel . length === 1
28
31
} . bind ( this ) )
29
32
You can’t perform that action at this time.
0 commit comments