mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-06 06:13:10 +07:00
More details in tag name validation
This commit is contained in:
@@ -26,9 +26,9 @@ App.controller('Tag', function($scope, $dialog, $state, Tag, Restangular) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Validate a tag.
|
||||
* Validate a tag name for duplicate.
|
||||
*/
|
||||
$scope.validateTag = function(name) {
|
||||
$scope.validateDuplicate = function(name) {
|
||||
return !_.find($scope.tags, function(tag) {
|
||||
return tag.name == name;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user