{ "id": "112880", "key": "TIMOB-13564", "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": "15114", "description": "2013 Sprint 09 BB", "name": "2013 Sprint 09 BB", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "15107", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "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-22T23:46:22.000+0000", "created": "2013-04-15T20:17:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded", "sdk-bb" ], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:48.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": "Description:\r\n1. Create an app for BB\r\n2. Replace the code in the app.ja with the following code:\r\n{code}\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 Ti.API.info('opening alert...');\r\n var alert1 = Ti.UI.createAlertDialog({\r\n title: 'Click a button...'\r\n });\r\n alert1.addEventListener('click', function(e) {\r\n alert('index = ' + e.index);\r\n });\r\n alert1.show();\r\n}\r\n \r\nsetTimeout(showAlert, 2000);\r\n{code}\r\n2. Build & run on BB device/simulator\r\n3. The app launches\r\n4. You will get an alert dialog qith a dialog 'click a button'\r\n5. After taping on OK 0r Cancel button on the first alert dialog you will get another alert dialog with the index of the tapped button\r\n\r\nActual Result:\r\n1.Notice that tapping on both OK or Cancel gives us the same index i.e '0'\r\n\r\nExpected Result;\r\n1. Both the OK & Cancel buttons should not have same index. ", "attachment": [], "flagged": false, "summary": "BlackBerry : We get same index for 'OK' & 'Cancel' button on an alert dialog", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nTi Studio : 3.1.1.201304122013\r\nTi BB SDK : 3.2.0.v20130412191647\r\nMac OSX : 10.8.2\r\nwin 7 \r\nWin 8 \r\nBB simulator : 10.0.10.261\r\nZ10 device running 10.0.10.88", "comment": { "comments": [ { "id": "250530", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Now the alert dialog has only one button 'OK' as parity with the other platforms.", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T10:05:03.000+0000", "updated": "2013-05-07T10:05:03.000+0000" }, { "id": "250531", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue & now we have only one button 'OK' on the alert dialog as parity with other platforms. Thus we only see index '0'.\r\nThus closing the issue.\r\n\r\nEnvironment:\r\nTi Studio : 3.1.1.201305031650\r\nTi BB SDK : 3.2.0.v20130506213759\r\nMac OSX : 10.8.2\r\nBB simulator : 10.0.10.261\r\nQ10 Simulator : 10.1.0.1020\r\n\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T10:10:29.000+0000", "updated": "2013-05-07T10:10:29.000+0000" }, { "id": "250767", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified on build 3.1.1.v20130507184555 & it works as expected.", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T10:19:49.000+0000", "updated": "2013-05-08T10:19:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }