OSDN Git Service

fb8e310e2f599c12f6d9d70822ae67b151bb3750
[embrj/master.git] / js / browse.js
1 $(function(){\r
2         $(".rt_btn").click(function(){\r
3                 if ($("#textbox").length > 0) {\r
4                         onRT($(this));\r
5                 } else {\r
6                         $("#browse_title").after(formHTML);\r
7                         formFunc();\r
8                         onRT($(this));\r
9                 }\r
10         });\r
11         $(".replie_btn").click(function(e){\r
12                 e.preventDefault();\r
13                 if ($("#textbox").length > 0) {\r
14                         onReplie($(this));\r
15                 } else {\r
16                         $("#browse_title").after(formHTML);\r
17                         formFunc();\r
18                         onReplie($(this));\r
19                 }\r
20         });\r
21         $(".favor_btn").live("click", function(){\r
22                 onFavor($(this));\r
23         });\r
24 });