From a2ec5ca8f00bdd725d16823ebf5f045ad6fe515e Mon Sep 17 00:00:00 2001 From: hanssens Date: Thu, 20 Aug 2015 21:06:10 +0200 Subject: [PATCH] Give new options/parameters a default value - New option "allow_video": which enables or disables selection of video's - New option "title": provide a custom title in the header of the selection screen - New option "message": provide a custom subtitle in the header of the selection screen --- www/imagepicker.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/imagepicker.js b/www/imagepicker.js index 843dbda..ba78d60 100644 --- a/www/imagepicker.js +++ b/www/imagepicker.js @@ -30,7 +30,10 @@ ImagePicker.prototype.getPictures = function(success, fail, options) { maximumImagesCount: options.maximumImagesCount ? options.maximumImagesCount : 15, width: options.width ? options.width : 0, height: options.height ? options.height : 0, - quality: options.quality ? options.quality : 100 + quality: options.quality ? options.quality : 100, + allow_video: options.allow_video ? options.allow_video : false, + title: options.title ? options.title : 'Custom Title', + message: options.message ? options.message : 'Custom helper message', }; return cordova.exec(success, fail, "ImagePicker", "getPictures", [params]);