{"action":"created","issue":{"url":"https://api.github.com/repos/loopj/jquery-tokeninput/issues/782","labels_url":"https://api.github.com/repos/loopj/jquery-tokeninput/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/loopj/jquery-tokeninput/issues/782/comments","events_url":"https://api.github.com/repos/loopj/jquery-tokeninput/issues/782/events","html_url":"https://github.com/loopj/jquery-tokeninput/issues/782","id":82241825,"number":782,"title":"[feature request] Callback like onNoResults or beforeFreeTaggingAdd","user":{"login":"CanRau","id":5196971,"avatar_url":"https://avatars.githubusercontent.com/u/5196971?v=3","gravatar_id":"","url":"https://api.github.com/users/CanRau","html_url":"https://github.com/CanRau","followers_url":"https://api.github.com/users/CanRau/followers","following_url":"https://api.github.com/users/CanRau/following{/other_user}","gists_url":"https://api.github.com/users/CanRau/gists{/gist_id}","starred_url":"https://api.github.com/users/CanRau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanRau/subscriptions","organizations_url":"https://api.github.com/users/CanRau/orgs","repos_url":"https://api.github.com/users/CanRau/repos","events_url":"https://api.github.com/users/CanRau/events{/privacy}","received_events_url":"https://api.github.com/users/CanRau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T03:46:21Z","updated_at":"2015-07-05T13:26:57Z","closed_at":null,"body":"Would be nice to have a callback like onNoResults or beforeFreeTaggingAdd so that I could place a lable like \"press enter to create new tag\" :)\r\n\r\nThis is my first feature request/issue on github, hope it's alright?"},"comment":{"url":"https://api.github.com/repos/loopj/jquery-tokeninput/issues/comments/118619705","html_url":"https://github.com/loopj/jquery-tokeninput/issues/782#issuecomment-118619705","issue_url":"https://api.github.com/repos/loopj/jquery-tokeninput/issues/782","id":118619705,"user":{"login":"valerio-bozzolan","id":6052909,"avatar_url":"https://avatars.githubusercontent.com/u/6052909?v=3","gravatar_id":"","url":"https://api.github.com/users/valerio-bozzolan","html_url":"https://github.com/valerio-bozzolan","followers_url":"https://api.github.com/users/valerio-bozzolan/followers","following_url":"https://api.github.com/users/valerio-bozzolan/following{/other_user}","gists_url":"https://api.github.com/users/valerio-bozzolan/gists{/gist_id}","starred_url":"https://api.github.com/users/valerio-bozzolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerio-bozzolan/subscriptions","organizations_url":"https://api.github.com/users/valerio-bozzolan/orgs","repos_url":"https://api.github.com/users/valerio-bozzolan/repos","events_url":"https://api.github.com/users/valerio-bozzolan/events{/privacy}","received_events_url":"https://api.github.com/users/valerio-bozzolan/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T13:26:57Z","updated_at":"2015-07-05T13:26:57Z","body":"It isn't necessary:\r\n```\r\n$(\"#my-text-input\").tokenInput(\"/url/to/your/script/\", {\r\n    onResult: function(results) {\r\n        if(results.length === 0) {\r\n            doWhatYouWant();\r\n        }\r\n        return results;\r\n    }\r\n});\r\n\r\n```"}}