{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1259","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1259/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1259/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1259/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1259","id":99626666,"number":1259,"title":"Uncaught TypeError on row-click","user":{"login":"samveen","id":1241434,"avatar_url":"https://avatars.githubusercontent.com/u/1241434?v=3","gravatar_id":"","url":"https://api.github.com/users/samveen","html_url":"https://github.com/samveen","followers_url":"https://api.github.com/users/samveen/followers","following_url":"https://api.github.com/users/samveen/following{/other_user}","gists_url":"https://api.github.com/users/samveen/gists{/gist_id}","starred_url":"https://api.github.com/users/samveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samveen/subscriptions","organizations_url":"https://api.github.com/users/samveen/orgs","repos_url":"https://api.github.com/users/samveen/repos","events_url":"https://api.github.com/users/samveen/events{/privacy}","received_events_url":"https://api.github.com/users/samveen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/labels/awaiting%20reply","name":"awaiting reply","color":"d4c5f9"},{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/labels/help%20wanted","name":"help wanted","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-07T10:54:08Z","updated_at":"2015-10-12T16:36:30Z","closed_at":"2015-09-02T06:40:52Z","body":"Bootstrap/table versions:\r\n```\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.8.1/bootstrap-table.min.css\">\r\n<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js\"></script>\r\n<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js\"></script>\r\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.8.1/bootstrap-table.min.js\"></script>\r\n```\r\n\r\nTable:\r\n```\r\n        <table id=\"dataTable\"\r\n               class=\"table-hover table-condensed table-striped\"\r\n               data-toggle=\"table\"\r\n               data-sort-name=\"expiry\"\r\n               data-sort-order=\"desc\"\r\n               data-pagination=\"true\"\r\n               data-page-size=\"20\"\r\n               data-id-field=\"node\"\r\n               data-card-view=\"true\"\r\n               data-search=\"true\"\r\n               data-click-to-select=\"true\"\r\n               data-url=\"cgi-bin/getNodeList\">\r\n          <thead>\r\n            <tr>\r\n              <th data-field=\"node\" data-sortable=\"true\">node</th>\r\n              <th data-field=\"serial\" data-sortable=\"true\">serial</th>\r\n              <th data-field=\"groups\" data-sortable=\"true\">groups</th>\r\n              <th data-field=\"ip\" data-sortable=\"true\">ip</th>\r\n              <th data-field=\"cputype\" data-sortable=\"true\">cputype</th>\r\n              <th data-field=\"memory\" data-sortable=\"true\">memory</th>\r\n              <th data-field=\"rack\" data-sortable=\"true\">rack</th>\r\n              <th data-field=\"unit\" data-sortable=\"true\">unit</th>\r\n              <th data-field=\"currstate\" data-sortable=\"true\">currstate</th>\r\n              <th data-field=\"status\" data-sortable=\"true\">status</th>\r\n              <th data-field=\"statustime\" data-sortable=\"true\">statustime</th>\r\n            </tr>\r\n          </thead>\r\n        </table>\r\n```\r\n\r\nHandler:\r\n```\r\n    $(function() {\r\n        //Twitter bootstrap scripts\r\n        var $table = $(\"#dataTable\");\r\n        // handler for Row click\r\n        $table.on('click-row.bs.table', function (e, row, $element) {\r\n                alert('Event: click-row.bs.table, data: ' + JSON.stringify(row));\r\n        });\r\n    });\r\n```\r\n\r\nError using the non-minified version(for better error tracing):\r\n```\r\nUncaught TypeError: Cannot read property 'click' of undefined        bootstrap-table.js:1414\r\n    (anonymous function) @ bootstrap-table.js:1414\r\n    m.event.dispatch @ jquery.min.js:3\r\n    m.event.add.r.handle @ jquery.min.js:3\r\n```\r\n\r\nNOTE: The click handler behaves as expected. However, this shows up post the handler execution."},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/147454619","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1259#issuecomment-147454619","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1259","id":147454619,"user":{"login":"setis","id":2644293,"avatar_url":"https://avatars.githubusercontent.com/u/2644293?v=3","gravatar_id":"","url":"https://api.github.com/users/setis","html_url":"https://github.com/setis","followers_url":"https://api.github.com/users/setis/followers","following_url":"https://api.github.com/users/setis/following{/other_user}","gists_url":"https://api.github.com/users/setis/gists{/gist_id}","starred_url":"https://api.github.com/users/setis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/setis/subscriptions","organizations_url":"https://api.github.com/users/setis/orgs","repos_url":"https://api.github.com/users/setis/repos","events_url":"https://api.github.com/users/setis/events{/privacy}","received_events_url":"https://api.github.com/users/setis/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T16:36:30Z","updated_at":"2015-10-12T16:36:30Z","body":"the problem is the compression bootstrap-table.min.js uncompressed no such problems bootstrap-table.js"}}