src/ui/file_picker.js
function createPicker() {
      if (pickerApiLoaded && oauthToken) {
        var picker = new google.picker.PickerBuilder().addView(google.picker.ViewId.DOCS)
          .setOAuthToken(oauthToken)
          .setDeveloperKey(developerKey)
          .setCallback(pickerCallback)
          .build();
        picker.setVisible(true);
        $('.picker-dialog-bg').css('z-index', 1052); // make it appear above modals
        $('.picker-dialog').css('z-index', 1053);
      }
    }
function createPicker() {
      if (pickerApiLoaded && oauthToken) {
        var picker = new google.picker.PickerBuilder().addView(google.picker.ViewId.DOCS)
          .setOAuthToken(oauthToken)
          .setDeveloperKey(developerKey)
          .setCallback(pickerCallback)
          .build();
        picker.setVisible(true);
        $('.picker-dialog-bg').css('z-index', 1052); // make it appear above modals
        $('.picker-dialog').css('z-index', 1053);
      }
    }
function createPicker ( ) { if ( pickerApiLoaded && oauthToken ) { var picker = new google . picker . PickerBuilder ( ) . addView ( google . picker . ViewId . DOCS ) . setOAuthToken ( oauthToken ) . setDeveloperKey ( developerKey ) . setCallback ( pickerCallback ) . build ( ) ; picker . setVisible ( true ) ; $ ( '.picker-dialog-bg' ) . css ( 'z-index' , 1052 ) ; // make it appear above modals $ ( '.picker-dialog' ) . css ( 'z-index' , 1053 ) ; } }
Create and render a Picker object for picking user Photos.
Create and render a Picker object for picking user Photos .