{"action":"created","issue":{"url":"https://api.github.com/repos/sandywalker/webui-popover/issues/108","labels_url":"https://api.github.com/repos/sandywalker/webui-popover/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/sandywalker/webui-popover/issues/108/comments","events_url":"https://api.github.com/repos/sandywalker/webui-popover/issues/108/events","html_url":"https://github.com/sandywalker/webui-popover/issues/108","id":106179166,"number":108,"title":"Popover not opening on click when content loaded from json file (Wenzhixin bootstrap-table)","user":{"login":"Same0717","id":11163199,"avatar_url":"https://avatars.githubusercontent.com/u/11163199?v=3","gravatar_id":"","url":"https://api.github.com/users/Same0717","html_url":"https://github.com/Same0717","followers_url":"https://api.github.com/users/Same0717/followers","following_url":"https://api.github.com/users/Same0717/following{/other_user}","gists_url":"https://api.github.com/users/Same0717/gists{/gist_id}","starred_url":"https://api.github.com/users/Same0717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Same0717/subscriptions","organizations_url":"https://api.github.com/users/Same0717/orgs","repos_url":"https://api.github.com/users/Same0717/repos","events_url":"https://api.github.com/users/Same0717/events{/privacy}","received_events_url":"https://api.github.com/users/Same0717/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-12T19:16:38Z","updated_at":"2015-10-30T07:52:54Z","closed_at":"2015-10-30T07:52:54Z","body":"Sandy thanks for the great work!  I have been using your webui-popover and it is great.  \r\n\r\nRecently I have been trying to use it along with Wenzhixin bootstrap-table for it's sort capabilities. When I load my content into the bootstap-table via a .json file nothing happen when I click the link that should open a popover.  Best I can tell everything loads correctly but the popover doesn't open when clicked.\r\n\r\nAny suggestions ? \r\nThanks\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/sandywalker/webui-popover/issues/comments/152452995","html_url":"https://github.com/sandywalker/webui-popover/issues/108#issuecomment-152452995","issue_url":"https://api.github.com/repos/sandywalker/webui-popover/issues/108","id":152452995,"user":{"login":"sandywalker","id":8475219,"avatar_url":"https://avatars.githubusercontent.com/u/8475219?v=3","gravatar_id":"","url":"https://api.github.com/users/sandywalker","html_url":"https://github.com/sandywalker","followers_url":"https://api.github.com/users/sandywalker/followers","following_url":"https://api.github.com/users/sandywalker/following{/other_user}","gists_url":"https://api.github.com/users/sandywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sandywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandywalker/subscriptions","organizations_url":"https://api.github.com/users/sandywalker/orgs","repos_url":"https://api.github.com/users/sandywalker/repos","events_url":"https://api.github.com/users/sandywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sandywalker/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T07:52:54Z","updated_at":"2015-10-30T07:52:54Z","body":"Sorry for so long delay, I tried your code and found the reason. \r\nThe problem is in your code,when  you inited the popover, but the data of the bootstrap-table was not loaded,so your jQuery selector $('.abc') will return empty array, of course the popover can't be initialised.\r\n\r\nTo fix the problem, I suggest you init the bootstrap-table by javascript code instead of using data attribute, so you can init the popover in onLoadSuccess of bootstrap-table.\r\n\r\nHere is my code, I've tested it, the popover worked fine with bootstrap-table.\r\n```html\r\n<table  id=\"jsontable\" class=\"table standings table-striped table-bordered\"  data-url=\"/demo/table-data.json\" data-sort-name=\"date\" data-sort-order=\"asc\">\r\n\r\n  <thead>\r\n        <tr>\r\n        <th data-field=\"date\" data-align=\"center\" data-sortable=\"true\" data-sorter=\"datesort\">Date</th>\r\n        <th data-field=\"time\" data-align=\"center\" data-sortable=\"true\">Time</th>\r\n        <th data-field=\"opponent\" data-align=\"center\" data-sortable=\"true\">Opponent</th>\r\n        <th data-field=\"location\" data-align=\"center\" data-sortable=\"true\">Location</th>\r\n        <th data-field=\"results\" data-align=\"center\" data-sortable=\"true\">Results</th>\r\n      </tr>\r\n    </thead>\r\n</table>\r\n```\r\n\r\n```javascript\r\n$('#jsontable').bootstrapTable({\r\n        onLoadSuccess:function(data){\r\n            $('.abc').webuiPopover({\r\n                  title:'ddd',\r\n                  content:'dxxxxx'\r\n            });\r\n        }\r\n      });\r\n```"}}