|
@@ -30,8 +30,9 @@ $(function(){
|
|
|
|
|
|
// 添加keyWords检查输入框内是否有文字,如果有才能点击添加按钮
|
|
|
$('.addkeyWord input.enterOne').on('input', function() {
|
|
|
+ var buttonDOM = $(this).siblings()[1].children[0];
|
|
|
if ($(this).val().length >= 100) {
|
|
|
- var s = $(this).val().slice(0,100)
|
|
|
+ var s = $(this).val().slice(0,99);
|
|
|
$(this).val(s)
|
|
|
|
|
|
weui.toast('关键词不能超过100字', {
|
|
@@ -39,10 +40,8 @@ $(function(){
|
|
|
className: 'text-overflow100',
|
|
|
callback: function(){ console.log('close') }
|
|
|
});
|
|
|
- return
|
|
|
}
|
|
|
|
|
|
- var buttonDOM = $(this).siblings()[1].children[0];
|
|
|
if ($(this).val().length >= 1) {
|
|
|
buttonDOM.style.opacity = 1;
|
|
|
buttonDOM.removeAttribute("disabled");
|