From 08474f539733afe2bc586dc8e52f21ffda07f6af Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 17 Nov 2013 16:01:44 +0000 Subject: [PATCH] Added flat and ofuser view to the Google Image Picker --- public/res/helpers/googleHelper.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/res/helpers/googleHelper.js b/public/res/helpers/googleHelper.js index f6da414c..5d661aa6 100644 --- a/public/res/helpers/googleHelper.js +++ b/public/res/helpers/googleHelper.js @@ -686,7 +686,12 @@ define([ pickerBuilder.addView(view); } else if(pickerType == 'img') { - pickerBuilder.addView(google.picker.ViewId.PHOTOS); + view = new google.picker.PhotosView(); + view.setType('flat'); + pickerBuilder.addView(view); + view = new google.picker.PhotosView(); + view.setType('ofuser'); + pickerBuilder.addView(view); pickerBuilder.addView(google.picker.ViewId.PHOTO_UPLOAD); } pickerBuilder.setCallback(function(data) {