{ "id": "82263", "key": "TIMOB-5970", "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": "12084", "description": "", "name": "Sprint 2011-44", "archived": true, "released": true, "releaseDate": "2011-11-07" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-03T15:45:27.000+0000", "created": "2011-11-02T17:38:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_media", "qe-testadded" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-03T15:45:27.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Once \"Titanium.Media.openPhotoGallery\" is called, you can not cancel it. There is no such \"cancel\" button as shown on iPhone. If you click twice outside the photo gallery, an error will be generated. \r\n\r\nh4. Repro Steps\r\nStep 1: create a project to run the example code below.\r\nStep 2: click on the space outside the photo gallery.\r\nStep 3: click again on the space outside the photo gallery, the \"error\" alert will be popped up.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#000' });\r\n\r\nwin.addEventListener('click', function(){\r\n Titanium.Media.openPhotoGallery({\r\n\r\n success:function(event)\r\n {\r\n alert('success');\r\n },\r\n cancel:function(cancel)\r\n {\r\n alert('cancel');\r\n },\r\n error:function(error)\r\n {\r\n alert('error');\r\n }\r\n });\r\n})\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iPad: Once Titanium.Media.openPhotoGallery is called, it can not be cancelled.", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.3\r\niOS Simulator 5.0", "comment": { "comments": [ { "id": "175267", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112061404\r\n
Ti Mob SDK 1.8.0.1.v20111207091653\r\n
OSX Lion\r\niPad 2 4.3.5\r\n\r\nExpected behavior is shown.\r\n\r\n*Note that on iOS on an iPad using a popover, there isn't a UI use case for having a cancel button displayed in the nav bar of the popover. The proper way to dismiss a popover is to dismiss it by clicking outside of the popover", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T16:13:46.000+0000", "updated": "2011-12-07T16:13:46.000+0000" }, { "id": "177901", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T15:45:00.000+0000", "updated": "2012-01-03T15:45:00.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }