Updated Branches: refs/heads/master 32e35b75c -> 5ec420ebd
[CB-925] saveToPhotoAlbum WP7 Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/5ec420eb Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/5ec420eb Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/5ec420eb Branch: refs/heads/master Commit: 5ec420ebdb8eef9377ce5065670e091c2e658778 Parents: 32e35b7 Author: Jesse MacFadyen <[email protected]> Authored: Fri Jul 13 12:18:36 2012 -0700 Committer: Jesse MacFadyen <[email protected]> Committed: Fri Jul 13 12:18:36 2012 -0700 ---------------------------------------------------------------------- lib/common/plugin/Camera.js | 5 ++++- lib/wp7/exec.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/5ec420eb/lib/common/plugin/Camera.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/Camera.js b/lib/common/plugin/Camera.js index b4330fb..6729868 100644 --- a/lib/common/plugin/Camera.js +++ b/lib/common/plugin/Camera.js @@ -103,7 +103,10 @@ cameraExport.getPicture = function(successCallback, errorCallback, options) { popoverOptions = options.popoverOptions; } - exec(successCallback, errorCallback, "Camera", "takePicture", [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType, mediaType, allowEdit, correctOrientation, saveToPhotoAlbum, popoverOptions]); + var args = [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType, + mediaType, allowEdit, correctOrientation, saveToPhotoAlbum, popoverOptions]; + + exec(successCallback, errorCallback, "Camera", "takePicture", args); }; cameraExport.cleanup = function(successCallback, errorCallback) { http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/5ec420eb/lib/wp7/exec.js ---------------------------------------------------------------------- diff --git a/lib/wp7/exec.js b/lib/wp7/exec.js index 9e83694..2446d53 100644 --- a/lib/wp7/exec.js +++ b/lib/wp7/exec.js @@ -49,7 +49,8 @@ var NamedArgs = { confirm:["message","title","buttonLabel"] }, Camera:{ - takePicture:["quality", "destinationType", "sourceType", "targetWidth", "targetHeight", "encodingType"] + takePicture:["quality", "destinationType", "sourceType", "targetWidth", "targetHeight", "encodingType", + "mediaType", "allowEdit", "correctOrientation", "saveToPhotoAlbum" ] }, Capture:{ getFormatData:["fullPath","type"]
