{"action":"opened","issue":{"url":"https://api.github.com/repos/mar10/fancytree/issues/666","repository_url":"https://api.github.com/repos/mar10/fancytree","labels_url":"https://api.github.com/repos/mar10/fancytree/issues/666/labels{/name}","comments_url":"https://api.github.com/repos/mar10/fancytree/issues/666/comments","events_url":"https://api.github.com/repos/mar10/fancytree/issues/666/events","html_url":"https://github.com/mar10/fancytree/issues/666","id":190902132,"number":666,"title":"renderColumns function callbacks question","user":{"login":"hike2008","id":8948629,"avatar_url":"https://avatars.githubusercontent.com/u/8948629?v=3","gravatar_id":"","url":"https://api.github.com/users/hike2008","html_url":"https://github.com/hike2008","followers_url":"https://api.github.com/users/hike2008/followers","following_url":"https://api.github.com/users/hike2008/following{/other_user}","gists_url":"https://api.github.com/users/hike2008/gists{/gist_id}","starred_url":"https://api.github.com/users/hike2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hike2008/subscriptions","organizations_url":"https://api.github.com/users/hike2008/orgs","repos_url":"https://api.github.com/users/hike2008/repos","events_url":"https://api.github.com/users/hike2008/events{/privacy}","received_events_url":"https://api.github.com/users/hike2008/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T04:02:20Z","updated_at":"2016-11-22T04:02:20Z","closed_at":null,"body":"```\r\nrenderColumns: function(event, data) {\r\n                var node = data.node,\r\n                        $tdList = $(node.tr).find(\">td\");\r\n\r\n                $tdList.eq(1).text(node.key);\r\n                // (Index #2 is rendered by fancytree)\r\n                // Set column #3 info from node data:\r\n                $tdList.eq(2).find(\"input\").click(function () {\r\n                    node.editCreateNode(\"child\", \"\");\r\n                });\r\n                $tdList.eq(3).find(\"input\").click(function () {\r\n                    node.editStart();\r\n                });\r\n                $tdList.eq(4).find(\"input\").click(function () {\r\n                    if(confirm(\"确认删除么？\")){\r\n                        var refNode = node.getNextSibling() || node.getPrevSibling() || node.getParent();\r\n                        $.ajax({\r\n                            type: \"POST\",\r\n                            url: \"/category/delete\",\r\n                            data: {'categoryId':node.key,'name':node.title},\r\n                            dataType: \"json\",\r\n                            success: function(response){\r\n                                if(response.code == 0){\r\n                                    node.remove();\r\n                                    if( refNode ) {\r\n                                        refNode.setActive();\r\n                                    }\r\n                                    alert(\"删除成功\");\r\n                                }else{\r\n                                    alert(response.msg);\r\n                                }\r\n                            }\r\n                        });\r\n                    }\r\n                });\r\n            }\r\n\r\n```\r\n\r\nI want to set Button click event in table, but the click function has twice callbacks;\r\nso I put the function in wrong way ?\r\n\r\nthanks..."}}
{"actor":{"display_login":"hike2008"}}