{"action":"created","comment":{"url":"https://api.github.com/repos/magento/devdocs/pulls/comments/294971102","pull_request_review_id":251287916,"id":294971102,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NDk3MTEwMg==","diff_hunk":"@@ -107,14 +108,83 @@ The title of the alert window.\n \n **Default value**: `''`\n \n+### `modalClass` {#alert_modalClass}\n+The CSS class of the alert window.\n+\n+**Type**: String.\n+\n+**Default value**: `'confirm'`\n+\n ## Events {#alert_events}\n \n The alert widget implements a single event: the `always` callback.\n+The `always` callback called when a modal is closed.","path":"guides/v2.1/javascript-dev-guide/widgets/widget_alert.md","position":22,"original_position":22,"commit_id":"a5e8e79d6379414623312c469103fc928287465e","original_commit_id":"a5e8e79d6379414623312c469103fc928287465e","user":{"login":"erikmarr","id":45772211,"node_id":"MDQ6VXNlcjQ1NzcyMjEx","avatar_url":"https://avatars0.githubusercontent.com/u/45772211?v=4","gravatar_id":"","url":"https://api.github.com/users/erikmarr","html_url":"https://github.com/erikmarr","followers_url":"https://api.github.com/users/erikmarr/followers","following_url":"https://api.github.com/users/erikmarr/following{/other_user}","gists_url":"https://api.github.com/users/erikmarr/gists{/gist_id}","starred_url":"https://api.github.com/users/erikmarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikmarr/subscriptions","organizations_url":"https://api.github.com/users/erikmarr/orgs","repos_url":"https://api.github.com/users/erikmarr/repos","events_url":"https://api.github.com/users/erikmarr/events{/privacy}","received_events_url":"https://api.github.com/users/erikmarr/received_events","type":"User","site_admin":false},"body":"```suggestion\r\nThe `always` callback is invoked when a modal window is closed.\r\n```","created_at":"2019-06-18T18:40:50Z","updated_at":"2019-06-18T18:43:56Z","html_url":"https://github.com/magento/devdocs/pull/4731#discussion_r294971102","pull_request_url":"https://api.github.com/repos/magento/devdocs/pulls/4731","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/magento/devdocs/pulls/comments/294971102"},"html":{"href":"https://github.com/magento/devdocs/pull/4731#discussion_r294971102"},"pull_request":{"href":"https://api.github.com/repos/magento/devdocs/pulls/4731"}}},"pull_request":{"url":"https://api.github.com/repos/magento/devdocs/pulls/4731","id":287429837,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg3NDI5ODM3","html_url":"https://github.com/magento/devdocs/pull/4731","diff_url":"https://github.com/magento/devdocs/pull/4731.diff","patch_url":"https://github.com/magento/devdocs/pull/4731.patch","issue_url":"https://api.github.com/repos/magento/devdocs/issues/4731","number":4731,"state":"open","locked":false,"title":"Add code samples for alert widget and add information about modalClass option","user":{"login":"serhiyzhovnir","id":31502344,"node_id":"MDQ6VXNlcjMxNTAyMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/31502344?v=4","gravatar_id":"","url":"https://api.github.com/users/serhiyzhovnir","html_url":"https://github.com/serhiyzhovnir","followers_url":"https://api.github.com/users/serhiyzhovnir/followers","following_url":"https://api.github.com/users/serhiyzhovnir/following{/other_user}","gists_url":"https://api.github.com/users/serhiyzhovnir/gists{/gist_id}","starred_url":"https://api.github.com/users/serhiyzhovnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serhiyzhovnir/subscriptions","organizations_url":"https://api.github.com/users/serhiyzhovnir/orgs","repos_url":"https://api.github.com/users/serhiyzhovnir/repos","events_url":"https://api.github.com/users/serhiyzhovnir/events{/privacy}","received_events_url":"https://api.github.com/users/serhiyzhovnir/received_events","type":"User","site_admin":false},"body":"## Purpose of this pull request\r\n\r\nThis pull request (PR) adds code samples of the alert widget initialization.\r\nAlso, it adds information about the **modalClass** widget option.\r\n\r\n## Affected DevDocs pages\r\n- https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/widgets/widget_alert.html\r\n- https://devdocs.magento.com/guides/v2.2/javascript-dev-guide/widgets/widget_alert.html\r\n- https://devdocs.magento.com/guides/v2.1/javascript-dev-guide/widgets/widget_alert.html\r\n\r\n## Links to Magento source code\r\n\r\n- https://github.com/magento/magento2/blob/2.1/app/code/Magento/Ui/view/base/web/js/modal/alert.js#L17\r\n- https://github.com/magento/magento2/blob/2.2/app/code/Magento/Ui/view/base/web/js/modal/alert.js#L20\r\n- https://github.com/magento/magento2/blob/2.3/app/code/Magento/Ui/view/base/web/js/modal/alert.js#L20\r\n- https://github.com/magento/magento2/blob/2.1/app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js#L1291\r\n- https://github.com/magento/magento2/blob/2.2/app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js#L1090\r\n- https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js#L1473\r\n\r\n\r\n","created_at":"2019-06-12T09:52:06Z","updated_at":"2019-06-18T18:43:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48dcc5f383a512a0f8f0136124ea22d2666c0b0f","assignee":{"login":"rogyar","id":2148959,"node_id":"MDQ6VXNlcjIxNDg5NTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2148959?v=4","gravatar_id":"","url":"https://api.github.com/users/rogyar","html_url":"https://github.com/rogyar","followers_url":"https://api.github.com/users/rogyar/followers","following_url":"https://api.github.com/users/rogyar/following{/other_user}","gists_url":"https://api.github.com/users/rogyar/gists{/gist_id}","starred_url":"https://api.github.com/users/rogyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogyar/subscriptions","organizations_url":"https://api.github.com/users/rogyar/orgs","repos_url":"https://api.github.com/users/rogyar/repos","events_url":"https://api.github.com/users/rogyar/events{/privacy}","received_events_url":"https://api.github.com/users/rogyar/received_events","type":"User","site_admin":false},"assignees":[{"login":"rogyar","id":2148959,"node_id":"MDQ6VXNlcjIxNDg5NTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2148959?v=4","gravatar_id":"","url":"https://api.github.com/users/rogyar","html_url":"https://github.com/rogyar","followers_url":"https://api.github.com/users/rogyar/followers","following_url":"https://api.github.com/users/rogyar/following{/other_user}","gists_url":"https://api.github.com/users/rogyar/gists{/gist_id}","starred_url":"https://api.github.com/users/rogyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogyar/subscriptions","organizations_url":"https://api.github.com/users/rogyar/orgs","repos_url":"https://api.github.com/users/rogyar/repos","events_url":"https://api.github.com/users/rogyar/events{/privacy}","received_events_url":"https://api.github.com/users/rogyar/received_events","type":"User","site_admin":false},{"login":"erikmarr","id":45772211,"node_id":"MDQ6VXNlcjQ1NzcyMjEx","avatar_url":"https://avatars0.githubusercontent.com/u/45772211?v=4","gravatar_id":"","url":"https://api.github.com/users/erikmarr","html_url":"https://github.com/erikmarr","followers_url":"https://api.github.com/users/erikmarr/followers","following_url":"https://api.github.com/users/erikmarr/following{/other_user}","gists_url":"https://api.github.com/users/erikmarr/gists{/gist_id}","starred_url":"https://api.github.com/users/erikmarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikmarr/subscriptions","organizations_url":"https://api.github.com/users/erikmarr/orgs","repos_url":"https://api.github.com/users/erikmarr/repos","events_url":"https://api.github.com/users/erikmarr/events{/privacy}","received_events_url":"https://api.github.com/users/erikmarr/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":661803220,"node_id":"MDU6TGFiZWw2NjE4MDMyMjA=","url":"https://api.github.com/repos/magento/devdocs/labels/2.1.x","name":"2.1.x","color":"c5def5","default":false},{"id":769999399,"node_id":"MDU6TGFiZWw3Njk5OTkzOTk=","url":"https://api.github.com/repos/magento/devdocs/labels/2.2.x","name":"2.2.x","color":"c5def5","default":false},{"id":872662021,"node_id":"MDU6TGFiZWw4NzI2NjIwMjE=","url":"https://api.github.com/repos/magento/devdocs/labels/2.3.x","name":"2.3.x","color":"c5def5","default":false},{"id":1198723103,"node_id":"MDU6TGFiZWwxMTk4NzIzMTAz","url":"https://api.github.com/repos/magento/devdocs/labels/Partner:%20Atwix","name":"Partner: Atwix","color":"ededed","default":false},{"id":903922475,"node_id":"MDU6TGFiZWw5MDM5MjI0NzU=","url":"https://api.github.com/repos/magento/devdocs/labels/Technical","name":"Technical","color":"db272a","default":false},{"id":952092714,"node_id":"MDU6TGFiZWw5NTIwOTI3MTQ=","url":"https://api.github.com/repos/magento/devdocs/labels/partners-contribution","name":"partners-contribution","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/magento/devdocs/pulls/4731/commits","review_comments_url":"https://api.github.com/repos/magento/devdocs/pulls/4731/comments","review_comment_url":"https://api.github.com/repos/magento/devdocs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magento/devdocs/issues/4731/comments","statuses_url":"https://api.github.com/repos/magento/devdocs/statuses/a5e8e79d6379414623312c469103fc928287465e","head":{"label":"serhiyzhovnir:alert-widget-adjustments","ref":"alert-widget-adjustments","sha":"a5e8e79d6379414623312c469103fc928287465e","user":{"login":"serhiyzhovnir","id":31502344,"node_id":"MDQ6VXNlcjMxNTAyMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/31502344?v=4","gravatar_id":"","url":"https://api.github.com/users/serhiyzhovnir","html_url":"https://github.com/serhiyzhovnir","followers_url":"https://api.github.com/users/serhiyzhovnir/followers","following_url":"https://api.github.com/users/serhiyzhovnir/following{/other_user}","gists_url":"https://api.github.com/users/serhiyzhovnir/gists{/gist_id}","starred_url":"https://api.github.com/users/serhiyzhovnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serhiyzhovnir/subscriptions","organizations_url":"https://api.github.com/users/serhiyzhovnir/orgs","repos_url":"https://api.github.com/users/serhiyzhovnir/repos","events_url":"https://api.github.com/users/serhiyzhovnir/events{/privacy}","received_events_url":"https://api.github.com/users/serhiyzhovnir/received_events","type":"User","site_admin":false},"repo":{"id":180524391,"node_id":"MDEwOlJlcG9zaXRvcnkxODA1MjQzOTE=","name":"devdocs","full_name":"serhiyzhovnir/devdocs","private":false,"owner":{"login":"serhiyzhovnir","id":31502344,"node_id":"MDQ6VXNlcjMxNTAyMzQ0","avatar_url":"https://avatars2.githubusercontent.com/u/31502344?v=4","gravatar_id":"","url":"https://api.github.com/users/serhiyzhovnir","html_url":"https://github.com/serhiyzhovnir","followers_url":"https://api.github.com/users/serhiyzhovnir/followers","following_url":"https://api.github.com/users/serhiyzhovnir/following{/other_user}","gists_url":"https://api.github.com/users/serhiyzhovnir/gists{/gist_id}","starred_url":"https://api.github.com/users/serhiyzhovnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serhiyzhovnir/subscriptions","organizations_url":"https://api.github.com/users/serhiyzhovnir/orgs","repos_url":"https://api.github.com/users/serhiyzhovnir/repos","events_url":"https://api.github.com/users/serhiyzhovnir/events{/privacy}","received_events_url":"https://api.github.com/users/serhiyzhovnir/received_events","type":"User","site_admin":false},"html_url":"https://github.com/serhiyzhovnir/devdocs","description":"Magento Developer Documentation","fork":true,"url":"https://api.github.com/repos/serhiyzhovnir/devdocs","forks_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/forks","keys_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/teams","hooks_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/hooks","issue_events_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/issues/events{/number}","events_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/events","assignees_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/assignees{/user}","branches_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/branches{/branch}","tags_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/tags","blobs_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/git/refs{/sha}","trees_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/statuses/{sha}","languages_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/languages","stargazers_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/stargazers","contributors_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/contributors","subscribers_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/subscribers","subscription_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/subscription","commits_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/commits{/sha}","git_commits_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/git/commits{/sha}","comments_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/comments{/number}","issue_comment_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/issues/comments{/number}","contents_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/contents/{+path}","compare_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/merges","archive_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/downloads","issues_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/issues{/number}","pulls_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/pulls{/number}","milestones_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/milestones{/number}","notifications_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/labels{/name}","releases_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/releases{/id}","deployments_url":"https://api.github.com/repos/serhiyzhovnir/devdocs/deployments","created_at":"2019-04-10T07:14:43Z","updated_at":"2019-04-24T07:16:41Z","pushed_at":"2019-06-18T13:47:19Z","git_url":"git://github.com/serhiyzhovnir/devdocs.git","ssh_url":"git@github.com:serhiyzhovnir/devdocs.git","clone_url":"https://github.com/serhiyzhovnir/devdocs.git","svn_url":"https://github.com/serhiyzhovnir/devdocs","homepage":"http://devdocs.magento.com","size":353164,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"magento:master","ref":"master","sha":"fd4b4a39b3261b77af02732af1127319170bf3e7","user":{"login":"magento","id":168457,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODQ1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/168457?v=4","gravatar_id":"","url":"https://api.github.com/users/magento","html_url":"https://github.com/magento","followers_url":"https://api.github.com/users/magento/followers","following_url":"https://api.github.com/users/magento/following{/other_user}","gists_url":"https://api.github.com/users/magento/gists{/gist_id}","starred_url":"https://api.github.com/users/magento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento/subscriptions","organizations_url":"https://api.github.com/users/magento/orgs","repos_url":"https://api.github.com/users/magento/repos","events_url":"https://api.github.com/users/magento/events{/privacy}","received_events_url":"https://api.github.com/users/magento/received_events","type":"Organization","site_admin":false},"repo":{"id":17608126,"node_id":"MDEwOlJlcG9zaXRvcnkxNzYwODEyNg==","name":"devdocs","full_name":"magento/devdocs","private":false,"owner":{"login":"magento","id":168457,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODQ1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/168457?v=4","gravatar_id":"","url":"https://api.github.com/users/magento","html_url":"https://github.com/magento","followers_url":"https://api.github.com/users/magento/followers","following_url":"https://api.github.com/users/magento/following{/other_user}","gists_url":"https://api.github.com/users/magento/gists{/gist_id}","starred_url":"https://api.github.com/users/magento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento/subscriptions","organizations_url":"https://api.github.com/users/magento/orgs","repos_url":"https://api.github.com/users/magento/repos","events_url":"https://api.github.com/users/magento/events{/privacy}","received_events_url":"https://api.github.com/users/magento/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/magento/devdocs","description":"Magento Developer Documentation","fork":false,"url":"https://api.github.com/repos/magento/devdocs","forks_url":"https://api.github.com/repos/magento/devdocs/forks","keys_url":"https://api.github.com/repos/magento/devdocs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magento/devdocs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magento/devdocs/teams","hooks_url":"https://api.github.com/repos/magento/devdocs/hooks","issue_events_url":"https://api.github.com/repos/magento/devdocs/issues/events{/number}","events_url":"https://api.github.com/repos/magento/devdocs/events","assignees_url":"https://api.github.com/repos/magento/devdocs/assignees{/user}","branches_url":"https://api.github.com/repos/magento/devdocs/branches{/branch}","tags_url":"https://api.github.com/repos/magento/devdocs/tags","blobs_url":"https://api.github.com/repos/magento/devdocs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magento/devdocs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magento/devdocs/git/refs{/sha}","trees_url":"https://api.github.com/repos/magento/devdocs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magento/devdocs/statuses/{sha}","languages_url":"https://api.github.com/repos/magento/devdocs/languages","stargazers_url":"https://api.github.com/repos/magento/devdocs/stargazers","contributors_url":"https://api.github.com/repos/magento/devdocs/contributors","subscribers_url":"https://api.github.com/repos/magento/devdocs/subscribers","subscription_url":"https://api.github.com/repos/magento/devdocs/subscription","commits_url":"https://api.github.com/repos/magento/devdocs/commits{/sha}","git_commits_url":"https://api.github.com/repos/magento/devdocs/git/commits{/sha}","comments_url":"https://api.github.com/repos/magento/devdocs/comments{/number}","issue_comment_url":"https://api.github.com/repos/magento/devdocs/issues/comments{/number}","contents_url":"https://api.github.com/repos/magento/devdocs/contents/{+path}","compare_url":"https://api.github.com/repos/magento/devdocs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magento/devdocs/merges","archive_url":"https://api.github.com/repos/magento/devdocs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magento/devdocs/downloads","issues_url":"https://api.github.com/repos/magento/devdocs/issues{/number}","pulls_url":"https://api.github.com/repos/magento/devdocs/pulls{/number}","milestones_url":"https://api.github.com/repos/magento/devdocs/milestones{/number}","notifications_url":"https://api.github.com/repos/magento/devdocs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magento/devdocs/labels{/name}","releases_url":"https://api.github.com/repos/magento/devdocs/releases{/id}","deployments_url":"https://api.github.com/repos/magento/devdocs/deployments","created_at":"2014-03-10T20:54:08Z","updated_at":"2019-06-17T23:39:43Z","pushed_at":"2019-06-18T18:32:55Z","git_url":"git://github.com/magento/devdocs.git","ssh_url":"git@github.com:magento/devdocs.git","clone_url":"https://github.com/magento/devdocs.git","svn_url":"https://github.com/magento/devdocs","homepage":"http://devdocs.magento.com","size":353315,"stargazers_count":410,"watchers_count":410,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1121,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":126,"license":null,"forks":1121,"open_issues":126,"watchers":410,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magento/devdocs/pulls/4731"},"html":{"href":"https://github.com/magento/devdocs/pull/4731"},"issue":{"href":"https://api.github.com/repos/magento/devdocs/issues/4731"},"comments":{"href":"https://api.github.com/repos/magento/devdocs/issues/4731/comments"},"review_comments":{"href":"https://api.github.com/repos/magento/devdocs/pulls/4731/comments"},"review_comment":{"href":"https://api.github.com/repos/magento/devdocs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magento/devdocs/pulls/4731/commits"},"statuses":{"href":"https://api.github.com/repos/magento/devdocs/statuses/a5e8e79d6379414623312c469103fc928287465e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"erikmarr"}}