\r
$(".replie_btn").live("click", function(e){\r
e.preventDefault();\r
- onReplie($(this));\r
+ onReplie($(this),e);\r
});\r
$(".favor_btn").live("click", function(e){\r
e.preventDefault();\r
onFavor($(this));\r
});\r
- \r
- $(".unfollow_list").click(function(e){\r
+ $(".unfollow_list").live("click",function(e){\r
e.preventDefault();\r
var $this = $(this);\r
var id = $(this).parent().parent().find(".rank_name").text().substr(1);\r
- updateSentTip("正在取消关注推群" + id + "...");\r
+ updateSentTip("Unfollowing lists...", 5000, "ing");\r
$.ajax({\r
url: "ajax/list.php",\r
type: "POST",\r
data: "action=destory&id=" + id,\r
success: function(msg) {\r
if (msg.indexOf("success") >= 0) {\r
- updateSentTip("取消关注推群" + id + "成功");\r
+ updateSentTip("Successfully unfollowing list" + id, 3000, "success");\r
$this.remove();\r
} else {\r
- updateSentTip("取消关注推群" + id + "失败,请重试");\r
+ updateSentTip("Unfollow failed. Please try again.", 3000, "failure");\r
}\r
},\r
error: function(msg) {\r
- updateSentTip("取消关注推群" + id + "失败,请重试");\r
+ updateSentTip("Unfollow failed. Please try again.", 3000, "failure");\r
}\r
});\r
\r
e.preventDefault();\r
var $this = $(this); \r
var list_id = $(this).parent().parent().find(".rank_name").text().substr(1);\r
- var confirm = window.confirm("确定要删除推群" + list_id + "?");\r
+ var confirm = window.confirm("Do you really want to delete" + list_id + "?");\r
if (confirm) {\r
- updateSentTip("删除推群" + list_id + "中...");\r
+ updateSentTip("deleting list" + list_id + "...", 5000, "ing");\r
$.ajax({\r
url: "ajax/delete.php",\r
type: "POST",\r
success: function(msg) {\r
if (msg.indexOf("success") >= 0) {\r
$this.parent().parent().parent().remove();\r
- updateSentTip("删除推群" + list_id + "成功");\r
+ updateSentTip("Successfully deleting" + list_id, 3000, "success");\r
} else {\r
- updateSentTip("删除推群出错,请重试");\r
+ updateSentTip("Delete failed. Please try again.", 3000, "failure");\r
}\r
},\r
error: function(msg) {\r
- updateSentTip("删除推群出错,请重试");\r
+ updateSentTip("Delete failed. Please try again.", 3000, "failure");\r
}\r
});\r
}\r
var liPosition = $(this).parent().parent().parent().position();\r
var list_name = $(this).parent().parent().find(".rank_name").text().split("/")[1];\r
$('<form method="POST" action="./lists.php?t=1" id="member_form">' +\r
- '<span>成员ID:(以英文逗号隔开,示例:bang590,twitter)</span>' +\r
+ '<span>User ID:(Saperated with comma, e.g. JLHwung,twitter)</span>' +\r
'<span><textarea type="text" name="list_members" id="list_members"></textarea></span>' +\r
'<input type="hidden" name="member_list_name" value="' + list_name + '" />' +\r
- '<span><input type="submit" class="btn" id="member_submit" value="提交" /> <input type="button" class="btn" id="member_cancel" value="取消" /></span>' +\r
+ '<span><input type="submit" class="btn" id="member_submit" value="Submit" /> <input type="button" class="btn" id="member_cancel" value="Cancel" /></span>' +\r
'</form>').appendTo("#statuses").css("left", liPosition.left + position.left).css("top", liPosition.top + position.top + 30);\r
\r
$("#member_cancel").click(function(){\r