{ "id": "130163", "key": "TIMOB-16931", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16272", "description": "2014 Sprint 10 Tooling", "name": "2014 Sprint 10 Tooling", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-23T20:51:26.000+0000", "created": "2014-05-08T14:22:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "mobileweb", "qe-closed-3.3.0", "qe-testadded", "regression", "supportTeam" ], "versions": [], "issuelinks": [ { "id": "37685", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "127878", "key": "TIMOB-16656", "fields": { "summary": "MobileWeb: createAlertDialog does not dismiss Ok button click", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-08-05T20:46:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h2. Description of the problem\r\nThe 'click' event is not fired for AlertDialog in mobile web (Chrome Desktop). The same works fine with SDK 3.1.3.\r\n\r\nh2. Code to reproduce\r\nUsing the code in the docs\r\n{code}\r\nTi.UI.setBackgroundColor('white');\r\nvar win = Ti.UI.createWindow({ \r\n title: 'Click window to test',\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false\r\n});\r\nwin.addEventListener('click', function(e){\r\n var dialog = Ti.UI.createAlertDialog({\r\n cancel: 1,\r\n buttonNames: ['Confirm', 'Cancel', 'Help'],\r\n message: 'Would you like to delete the file?',\r\n title: 'Delete'\r\n });\r\n dialog.addEventListener('click', function(e){\r\n if (e.index === e.source.cancel){\r\n Ti.API.info('The cancel button was clicked');\r\n }\r\n Ti.API.info('e.cancel: ' + e.cancel);\r\n Ti.API.info('e.source.cancel: ' + e.source.cancel);\r\n Ti.API.info('e.index: ' + e.index);\r\n });\r\n dialog.show();\r\n});\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: AlertDialog click listener is not fired in SDK >= 3.2.0", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 107, "state": "closed", "name": "2014 Sprint 10 Tooling", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:27.256Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "305348", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/5695", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-16T20:12:23.000+0000", "updated": "2014-05-16T20:12:23.000+0000" }, { "id": "305351", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Clicking on the buttons in the alert dialog dismisses the dialog and fires the logging messages.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-16T20:26:21.000+0000", "updated": "2014-05-16T20:26:21.000+0000" }, { "id": "306837", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the above code using\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201405271647\r\nTitanium SDK, build: 3.3.0.v20140528144113 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-beta \r\nnpm@1.3.2 \r\ntitanium@3.3.0-beta \r\ntitanium-code-processor@1.1.1\r\nDevice: iPhone5C iOS 7.1 Safari native browser\r\nSafari browser 7.0.4\r\n\r\n1. Mobile Web Preview in Browser \r\n2. Preview of a packaged for Mobile Web app\r\nPass for both cases\r\nClosing as fixed.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-29T17:02:02.000+0000", "updated": "2014-05-29T17:02:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }