{"action":"created","issue":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/90","labels_url":"https://api.github.com/repos/t4t5/sweetalert/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/t4t5/sweetalert/issues/90/comments","events_url":"https://api.github.com/repos/t4t5/sweetalert/issues/90/events","html_url":"https://github.com/t4t5/sweetalert/pull/90","id":45326353,"number":90,"title":"Added a cool Input Field option for SweetAlert","user":{"login":"nutterbrand","id":95765,"avatar_url":"https://avatars.githubusercontent.com/u/95765?v=3","gravatar_id":"","url":"https://api.github.com/users/nutterbrand","html_url":"https://github.com/nutterbrand","followers_url":"https://api.github.com/users/nutterbrand/followers","following_url":"https://api.github.com/users/nutterbrand/following{/other_user}","gists_url":"https://api.github.com/users/nutterbrand/gists{/gist_id}","starred_url":"https://api.github.com/users/nutterbrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutterbrand/subscriptions","organizations_url":"https://api.github.com/users/nutterbrand/orgs","repos_url":"https://api.github.com/users/nutterbrand/repos","events_url":"https://api.github.com/users/nutterbrand/events{/privacy}","received_events_url":"https://api.github.com/users/nutterbrand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/t4t5/sweetalert/labels/help%20wanted","name":"help wanted","color":"d4c5f9"},{"url":"https://api.github.com/repos/t4t5/sweetalert/labels/new%20feature","name":"new feature","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-10-09T04:33:38Z","updated_at":"2015-03-15T11:10:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/t4t5/sweetalert/pulls/90","html_url":"https://github.com/t4t5/sweetalert/pull/90","diff_url":"https://github.com/t4t5/sweetalert/pull/90.diff","patch_url":"https://github.com/t4t5/sweetalert/pull/90.patch"},"body":"It is nice to have an input field for an alert to accept user input. I added the following features:\r\n\r\n1) Added a parameter: inputField: (true | false) to enable the input field.\r\n2) Added the necessary focus() to the input element programatically.\r\n3) Updated the documentation to include the parameter and to include an example of a use case.\r\n\r\nUpdate: I added an important fix that I missed on the first commit. That is the commit with the message: \"Added fix for running params.doneFunction() without a parameter\". Please include the head of master in the merge to get the latest changes."},"comment":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/comments/80960247","html_url":"https://github.com/t4t5/sweetalert/pull/90#issuecomment-80960247","issue_url":"https://api.github.com/repos/t4t5/sweetalert/issues/90","id":80960247,"user":{"login":"lvillani","id":241660,"avatar_url":"https://avatars.githubusercontent.com/u/241660?v=3","gravatar_id":"","url":"https://api.github.com/users/lvillani","html_url":"https://github.com/lvillani","followers_url":"https://api.github.com/users/lvillani/followers","following_url":"https://api.github.com/users/lvillani/following{/other_user}","gists_url":"https://api.github.com/users/lvillani/gists{/gist_id}","starred_url":"https://api.github.com/users/lvillani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvillani/subscriptions","organizations_url":"https://api.github.com/users/lvillani/orgs","repos_url":"https://api.github.com/users/lvillani/repos","events_url":"https://api.github.com/users/lvillani/events{/privacy}","received_events_url":"https://api.github.com/users/lvillani/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T11:10:42Z","updated_at":"2015-03-15T11:10:42Z","body":"@t4t5 I added the ability to specify a default value when first opening the prompt in this commit: https://github.com/lvillani/sweetalert/commit/8e62aa724f8a67ff07dca1eb6064c8289d226d43"}}