{ "id": "103038", "key": "TIMOB-11350", "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": "14174", "description": "Sprint 2012-21 BB", "name": "Sprint 2012-21 BB", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "15113", "description": "2013 Sprint 08 BB", "name": "2013 Sprint 08 BB", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-15T19:19:45.000+0000", "created": "2012-10-10T03:45:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-15T20:20:26.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "The \"click\" events are not firing when a button is pressed on an alert dialog.\r\n\r\nh4. Test Case\r\n{code:JavaScript}\r\nTi.API.info('running');\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'red'});\r\nwin.open();\r\n\r\nfunction showAlert() {\r\n\tTi.API.info('opening alert...');\r\n\tvar alert = Ti.UI.createAlertDialog({\r\n\t\ttitle: 'Click a button...'\r\n\t});\r\n\talert.addEventListener('click', function(e) {\r\n\t\tTi.API.info('index = ' + e.index);\r\n\t});\r\n\talert.show();\r\n}\r\n\r\nsetTimeout(showAlert, 2000);\r\n{code}", "attachment": [], "flagged": false, "summary": "Blackberry: AlertDialog click events not working", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "235290", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening as still seeing the issue.\r\nNot seeing alert dialog click events.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.0.201212191959\r\nTi BB SDK : 3.1.0.v20130114171802\r\nMac OSX : 10.8.2\r\nwin 7 64 bit\r\nBB simulator : 10.0.9.386\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T01:46:52.000+0000", "updated": "2013-01-22T01:46:52.000+0000" }, { "id": "247620", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on BlackBerry simulator 10.1.0.1020. Not able to reproduce the bug. I can see the log message when clicking the button.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T19:13:17.000+0000", "updated": "2013-04-15T19:13:17.000+0000" }, { "id": "247627", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T20:20:26.000+0000", "updated": "2013-04-15T20:20:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }