Commit f3292277 authored by 蒋林's avatar 蒋林

收藏, 历史记录

parent 380ecf90
...@@ -231,7 +231,6 @@ $('#favor').click(function () { ...@@ -231,7 +231,6 @@ $('#favor').click(function () {
var fill = $(self).find("i").hasClass("icon-favor"); var fill = $(self).find("i").hasClass("icon-favor");
$.post("/e/action/news/index.php?mod=favorite", {newsid: newsid}, function (e) { $.post("/e/action/news/index.php?mod=favorite", {newsid: newsid}, function (e) {
if (e.status) { if (e.status) {
console.log(fill);
if (fill) { if (fill) {
$(self).find('i').removeClass('icon-favor').addClass('icon-favor-fill'); $(self).find('i').removeClass('icon-favor').addClass('icon-favor-fill');
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment