Labs/Ubiquity/Ubiquity Source Tip Author Tutorial: Difference between revisions

Jump to navigation Jump to search
Line 293: Line 293:
    
    
   preview: function( pblock ) {
   preview: function( pblock ) {
     var msg = "Inserts a map of your current location: <br/>";
     var msg = "Inserts a map of your current location: <br/>" +
    msg += "<img src='%s'/>".replace( /%s/, this._getMapUrl() );
              "<img src='${url}'/>";
    pblock.innerHTML = msg;
    pblock.innerHTML = _(msg, {url: this._getMapUrl()});
   },
   },
    
    
1,007

edits

Navigation menu