{"action":"created","issue":{"url":"https://api.github.com/repos/BeSite/jQuery.TosRUs/issues/22","labels_url":"https://api.github.com/repos/BeSite/jQuery.TosRUs/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/BeSite/jQuery.TosRUs/issues/22/comments","events_url":"https://api.github.com/repos/BeSite/jQuery.TosRUs/issues/22/events","html_url":"https://github.com/BeSite/jQuery.TosRUs/issues/22","id":38670674,"number":22,"title":"Close by clicking outside of the image - \"lightbox\"","user":{"login":"kocosh","id":8261013,"avatar_url":"https://avatars.githubusercontent.com/u/8261013?v=3","gravatar_id":"","url":"https://api.github.com/users/kocosh","html_url":"https://github.com/kocosh","followers_url":"https://api.github.com/users/kocosh/followers","following_url":"https://api.github.com/users/kocosh/following{/other_user}","gists_url":"https://api.github.com/users/kocosh/gists{/gist_id}","starred_url":"https://api.github.com/users/kocosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kocosh/subscriptions","organizations_url":"https://api.github.com/users/kocosh/orgs","repos_url":"https://api.github.com/users/kocosh/repos","events_url":"https://api.github.com/users/kocosh/events{/privacy}","received_events_url":"https://api.github.com/users/kocosh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-07-24T20:28:55Z","updated_at":"2016-01-22T00:25:21Z","closed_at":"2014-09-01T18:26:13Z","body":"Hi guys, \r\nfirstly, thanks a lot for your work!\r\n\r\nI have a small problem with the plugin, I can't manage to replace the lightbox closing button functionality by clicking anywhere outside of the current image. \r\n\r\nI've tried something like this, but it doesn't work...\r\nbuttons:  {\r\nclose : \".tos-wrapper\"\r\n}\r\n\r\nCould you help me please?\r\nThank you very much!"},"comment":{"url":"https://api.github.com/repos/BeSite/jQuery.TosRUs/issues/comments/173759953","html_url":"https://github.com/BeSite/jQuery.TosRUs/issues/22#issuecomment-173759953","issue_url":"https://api.github.com/repos/BeSite/jQuery.TosRUs/issues/22","id":173759953,"user":{"login":"anarchoi","id":2366002,"avatar_url":"https://avatars.githubusercontent.com/u/2366002?v=3","gravatar_id":"","url":"https://api.github.com/users/anarchoi","html_url":"https://github.com/anarchoi","followers_url":"https://api.github.com/users/anarchoi/followers","following_url":"https://api.github.com/users/anarchoi/following{/other_user}","gists_url":"https://api.github.com/users/anarchoi/gists{/gist_id}","starred_url":"https://api.github.com/users/anarchoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anarchoi/subscriptions","organizations_url":"https://api.github.com/users/anarchoi/orgs","repos_url":"https://api.github.com/users/anarchoi/repos","events_url":"https://api.github.com/users/anarchoi/events{/privacy}","received_events_url":"https://api.github.com/users/anarchoi/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T00:25:20Z","updated_at":"2016-01-22T00:25:20Z","body":"doesn't work for me with this code... whats wrong ??\r\n\r\n\r\n<!-- include jQuery -->\r\n<script type=\"text/javascript\" src=\"https://www.ni-dieu-ni-maitre.com/scripts/jquery-1.8.2.min.js\"></script>\r\n<!-- for dragging/swiping/pinching, include Hammer.js -->\r\n<script type=\"text/javascript\" src=\"http://cdn.jsdelivr.net/hammerjs/2.0.3/hammer.min.js\"></script>\r\n<!-- for scaling UI buttons (for wide websites on small screens), include FlameViewportScale -->\r\n<script type=\"text/javascript\" language=\"javascript\" src=\"lib/FlameViewportScale.js\"></script>\r\n<!-- include Tos \"R\"Us -->\r\n<script type=\"text/javascript\" language=\"javascript\" src=\"src/js/jquery.tosrus.min.all.js\"></script>\r\n<link type=\"text/css\" media=\"all\" rel=\"stylesheet\" href=\"src/css/jquery.tosrus.all.css\" />\r\n\r\n<!-- fire the plugin onDocumentReady -->\r\n<script type=\"text/javascript\" language=\"javascript\">\r\njQuery(function( $ ) {\r\n\r\n//\tAdd a custom filter to recognize images from lorempixel (that don't end with \".jpg\" or something similar)\r\n$.tosrus.defaults.media.image = {\r\nfilterAnchors: function( $anchor ) {\r\n\treturn $anchor.attr( 'href' ).indexOf( 'lorempixel.com' ) > -1;\r\n}\r\n};\r\n\r\n$('#lightbox a').tosrus({\r\nwrapper : { onClick: close }\r\n});\r\n\r\n\r\n});\r\n</script>\r\n\r\n\r\n<div id=\"lightbox\">\r\n<a href=\"http://lorempixel.com/1200/675/cats/5/\">1</a>\r\n<a href=\"http://lorempixel.com/1200/675/cats/6/\"></a>\r\n</div>\r\n\r\n\r\n<div id=\"lightbox 2\">\r\n<a href=\"http://lorempixel.com/1200/675/cats/7/\">2</a>\r\n<a href=\"http://lorempixel.com/1200/675/cats/8/\"></a>\r\n</div>\r\n\r\n"}}