Don't need showcharacterslefttext if we're always showing number of chars left

This commit is contained in:
Sebastiaan Janssen
2017-11-06 17:07:14 +01:00
committed by GitHub
parent 0231a6037e
commit 4f2650277a

View File

@@ -10,8 +10,6 @@ function textboxController($scope) {
}
if ($scope.model.config && $scope.model.config.maxChars) {
$scope.model.showcharacterslefttext = $scope.model.config.maxChars < 500;
if ($scope.model.value == undefined) {
$scope.model.count = ($scope.model.config.maxChars * 1);
} else {
@@ -33,4 +31,4 @@ function textboxController($scope) {
}
}
}
angular.module('umbraco').controller("Umbraco.PropertyEditors.textboxController", textboxController);
angular.module('umbraco').controller("Umbraco.PropertyEditors.textboxController", textboxController);