{"action":"created","issue":{"url":"https://api.github.com/repos/olifolkerd/tabulator/issues/1172","repository_url":"https://api.github.com/repos/olifolkerd/tabulator","labels_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/1172/labels{/name}","comments_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/1172/comments","events_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/1172/events","html_url":"https://github.com/olifolkerd/tabulator/issues/1172","id":328650178,"node_id":"MDU6SXNzdWUzMjg2NTAxNzg=","number":1172,"title":"Pagination unwanted scroll to top of page","user":{"login":"jguitarz","id":3741060,"node_id":"MDQ6VXNlcjM3NDEwNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3741060?v=4","gravatar_id":"","url":"https://api.github.com/users/jguitarz","html_url":"https://github.com/jguitarz","followers_url":"https://api.github.com/users/jguitarz/followers","following_url":"https://api.github.com/users/jguitarz/following{/other_user}","gists_url":"https://api.github.com/users/jguitarz/gists{/gist_id}","starred_url":"https://api.github.com/users/jguitarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguitarz/subscriptions","organizations_url":"https://api.github.com/users/jguitarz/orgs","repos_url":"https://api.github.com/users/jguitarz/repos","events_url":"https://api.github.com/users/jguitarz/events{/privacy}","received_events_url":"https://api.github.com/users/jguitarz/received_events","type":"User","site_admin":false},"labels":[{"id":277350038,"node_id":"MDU6TGFiZWwyNzczNTAwMzg=","url":"https://api.github.com/repos/olifolkerd/tabulator/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"olifolkerd","id":6840524,"node_id":"MDQ6VXNlcjY4NDA1MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6840524?v=4","gravatar_id":"","url":"https://api.github.com/users/olifolkerd","html_url":"https://github.com/olifolkerd","followers_url":"https://api.github.com/users/olifolkerd/followers","following_url":"https://api.github.com/users/olifolkerd/following{/other_user}","gists_url":"https://api.github.com/users/olifolkerd/gists{/gist_id}","starred_url":"https://api.github.com/users/olifolkerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olifolkerd/subscriptions","organizations_url":"https://api.github.com/users/olifolkerd/orgs","repos_url":"https://api.github.com/users/olifolkerd/repos","events_url":"https://api.github.com/users/olifolkerd/events{/privacy}","received_events_url":"https://api.github.com/users/olifolkerd/received_events","type":"User","site_admin":false},"assignees":[{"login":"olifolkerd","id":6840524,"node_id":"MDQ6VXNlcjY4NDA1MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6840524?v=4","gravatar_id":"","url":"https://api.github.com/users/olifolkerd","html_url":"https://github.com/olifolkerd","followers_url":"https://api.github.com/users/olifolkerd/followers","following_url":"https://api.github.com/users/olifolkerd/following{/other_user}","gists_url":"https://api.github.com/users/olifolkerd/gists{/gist_id}","starred_url":"https://api.github.com/users/olifolkerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olifolkerd/subscriptions","organizations_url":"https://api.github.com/users/olifolkerd/orgs","repos_url":"https://api.github.com/users/olifolkerd/repos","events_url":"https://api.github.com/users/olifolkerd/events{/privacy}","received_events_url":"https://api.github.com/users/olifolkerd/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-06-01T20:26:20Z","updated_at":"2018-06-24T08:53:02Z","closed_at":"2018-06-24T08:53:02Z","author_association":"NONE","body":"First of all, great plugin! Very useful so far.\r\n\r\nI am having an issue with the pagination scrolling to the top of the window whenever clicked.  Can't figure out why it is doing that.  I added this click event to remedy most of the problem:\r\n\r\n    $(document).on('click','.tabulator-page',function(){\r\n        console.log($(this).attr(\"data-page\"));\r\n        $(window).scrollTop($(\".tabulator\").offset().top);\r\n    });\r\n\r\nOnly problem with that remedy is this event only works on the numbers and not the \"First, Prev, Next, Last\" buttons, yet they have the same selector.  By the way, I have already tried e.preventDefault(); and return false; in hopes it would stop scrolling to the top of the page.\r\n\r\nAny solutions?"},"comment":{"url":"https://api.github.com/repos/olifolkerd/tabulator/issues/comments/399740321","html_url":"https://github.com/olifolkerd/tabulator/issues/1172#issuecomment-399740321","issue_url":"https://api.github.com/repos/olifolkerd/tabulator/issues/1172","id":399740321,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTc0MDMyMQ==","user":{"login":"olifolkerd","id":6840524,"node_id":"MDQ6VXNlcjY4NDA1MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6840524?v=4","gravatar_id":"","url":"https://api.github.com/users/olifolkerd","html_url":"https://github.com/olifolkerd","followers_url":"https://api.github.com/users/olifolkerd/followers","following_url":"https://api.github.com/users/olifolkerd/following{/other_user}","gists_url":"https://api.github.com/users/olifolkerd/gists{/gist_id}","starred_url":"https://api.github.com/users/olifolkerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olifolkerd/subscriptions","organizations_url":"https://api.github.com/users/olifolkerd/orgs","repos_url":"https://api.github.com/users/olifolkerd/repos","events_url":"https://api.github.com/users/olifolkerd/events{/privacy}","received_events_url":"https://api.github.com/users/olifolkerd/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T08:53:02Z","updated_at":"2018-06-24T08:53:02Z","author_association":"OWNER","body":"Hey @jguitarz \r\n\r\nThis turns out to be an issue with the pagination buttons when the table is included inside a form.\r\n\r\nThis issue has now been fixed and will be included in the patch release this evening.\r\n\r\nCheers\r\n\r\nOli :)"}}
{"actor":{"display_login":"olifolkerd"}}