function callback(data) {
        var url, doc;
        if (data[google.picker.Response.ACTION] == google.picker.Action.PICKED) {
            doc = data[google.picker.Response.DOCUMENTS][0];
            if (doc) {
                $(elementId).val(doc[google.picker.Document.URL]);
                if (submit) {
                    $(elementId).closest('form').submit();
                }
            }
        }
    }
// Put the URL in the specified element
Put the URL in the specified element
Put the URL in the specified element
function callback(data) {
        var url, doc;
        if (data[google.picker.Response.ACTION] == google.picker.Action.PICKED) {
            doc = data[google.picker.Response.DOCUMENTS][0];
            if (doc) {
                $(elementId).val(doc[google.picker.Document.URL]);
                if (submit) {
                    $(elementId).closest('form').submit();
                }
            }
        }
    }
function callback ( data ) { var url , doc ; if ( data [ google . picker . Response . ACTION ] == google . picker . Action . PICKED ) { doc = data [ google . picker . Response . DOCUMENTS ] [ 0 ] ; if ( doc ) { $ ( elementId ) . val ( doc [ google . picker . Document . URL ] ) ; if ( submit ) { $ ( elementId ) . closest ( 'form' ) . submit ( ) ; } } } }
Put the URL in the specified element
Put the URL in the specified element