{ "id": "84237", "key": "TIMOB-6901", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-03T03:34:59.000+0000", "created": "2011-12-23T04:10:18.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56004", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136144", "key": "TIMOB-18500", "fields": { "summary": "Android: event.cancel not set properly for optionsDialog", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2018-01-03T03:34:59.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "h2. Problem\r\n\r\nCurrently the way to check whether the hardware back button has been pressed when an optionDialog has been displayed is verbose. Also, the action of clicking this button means the same as clicking the optionDialog's cancel button, so it would be beneficial to have a more literal event to handle the situation is canceled, regardless of whether that is by using the hardware back button or clicking the cancel button of the optionDialog.\r\n\r\nh2. Request / Solution\r\n\r\nRedevelop \"cancel\" functionality of optionDialog so that it supports new \"cancel\" event instead of \"cancel\" property in \"click\" event, to handle situations where no option is selected.\r\n\r\nh2. Justification\r\n\r\nConvenience and shorter JS code\r\n\r\nThe advantage is that we will be able to do action when both \"cancel\" option is selected and hardware back-button is pressed, and on the other hand in \"click\" event listener we won't have to check if \"cancel\" opinion was clicked to do no action (so, \"cancel\" option would not produce \"click\" event).\r\n", "attachment": [], "flagged": false, "summary": "API: UI - provide optionDialog cancel event for when no button is selected", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "177109", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Ivan\r\n\r\nIf I understand this request correctly, while I admit this functionality would be convenient, the functionality is already available in Titanium to achieve this and the code is quite trivial.\r\n\r\nWith this in mind, I will personally ask the engineering team if they think this is worthwhile, and move it across to the main project if they do.\r\n\r\nI will let you know the response.\r\n\r\nThanks for the suggestion.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T04:56:33.000+0000", "updated": "2011-12-23T04:56:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }