增加书签分类,做限定
This commit is contained in:
parent
180830790a
commit
e4c2fcd561
|
|
@ -326,6 +326,10 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim
|
||||||
|
|
||||||
$scope.addTag = function(tag) {
|
$scope.addTag = function(tag) {
|
||||||
console.log(tag);
|
console.log(tag);
|
||||||
|
if($scope.tags.length >= 30){
|
||||||
|
toastr.error('标签个数总数不能超过30个!不允许再添加新分类,如有需求,请联系管理员。', "提示");
|
||||||
|
return;
|
||||||
|
}
|
||||||
tag = tag.replace(/(^\s*)|(\s*$)/g, '').replace(/\s+/g, ' '); // 去除前后空格,多个空格转为一个空格;
|
tag = tag.replace(/(^\s*)|(\s*$)/g, '').replace(/\s+/g, ' '); // 去除前后空格,多个空格转为一个空格;
|
||||||
if (tag) {
|
if (tag) {
|
||||||
ngDialog.close(dialog);
|
ngDialog.close(dialog);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue