Authored by zhangxiaoru

editorialbtn

@@ -174,16 +174,17 @@ $('#comment-info').keyup(function() { @@ -174,16 +174,17 @@ $('#comment-info').keyup(function() {
174 174
175 if (len === 0) { 175 if (len === 0) {
176 $wordCountTip.html(''); 176 $wordCountTip.html('');
  177 + $commentBtn.removeClass('able');
177 $commentBtn.addClass('disable'); 178 $commentBtn.addClass('disable');
178 } else { 179 } else {
179 if (len - MAX_COMMENTS_WORDS <= 0) { 180 if (len - MAX_COMMENTS_WORDS <= 0) {
180 showTxt = '还可以输入' + (MAX_COMMENTS_WORDS - len) + '字'; 181 showTxt = '还可以输入' + (MAX_COMMENTS_WORDS - len) + '字';
181 $commentBtn.removeClass('disable'); 182 $commentBtn.removeClass('disable');
182 - $commentBtn.css('background', '#1b1b1b'); 183 + $commentBtn.addClass('able');
183 } else { 184 } else {
184 showTxt = '已超过<span class="exceed-count">' + (len - MAX_COMMENTS_WORDS) + '</span>字'; 185 showTxt = '已超过<span class="exceed-count">' + (len - MAX_COMMENTS_WORDS) + '</span>字';
  186 + $commentBtn.removeClass('able');
185 $commentBtn.addClass('disable'); 187 $commentBtn.addClass('disable');
186 - $commentBtn.css('background', '#999');  
187 } 188 }
188 } 189 }
189 $wordCountTip.html(showTxt); 190 $wordCountTip.html(showTxt);
@@ -448,12 +448,20 @@ @@ -448,12 +448,20 @@
448 text-align: center; 448 text-align: center;
449 color: #fff; 449 color: #fff;
450 font-size: 14px; 450 font-size: 14px;
451 - background: #999; 451 + background: #000;
452 cursor: pointer; 452 cursor: pointer;
453 453
454 - &:hover { 454 +/* &:hover {
455 background: #000; 455 background: #000;
  456 + }*/
456 } 457 }
  458 +
  459 + .disable {
  460 + background: #999;
  461 + }
  462 +
  463 + .able {
  464 + background: #000;
457 } 465 }
458 466
459 .comments-wrap { 467 .comments-wrap {