1
edit
Changes
no edit summary
}
})
----
This is my submission. I am assuming we are encouraged to reuse code wherever possible
--[[User:John64|John64]] 16:24, 9 September 2008 (UTC)
<nowiki><pre>
/*This function is based of Ezadkiel Marbella
http://zenit.senecac.on.ca/wiki/index.php/Learning_Collaborative_Development_Lab_Fall_2008_Results
*/
CmdUtils.CreateCommand({
name: "zenit-google-search:",
takes: {"search terms seperated by a '+' sign": noun_arb_text},
preview: function( pblock, googlequery ) {
pblock.innerHTML = "Will Search For: " + googlequery.text;
},
execute: function( googlequery ) {
var urlPrefix = "http://www.google.ca/search?hl=en&q=site%3Azenit.senecac.on.ca%2Fwiki+"
var urlSuffix = "&btnG=Search&meta="
var query = googlequery.text;
var urlString = urlPrefix + query + urlSuffix;
Utils.openUrlInBrowser(urlString);
}
})
</pre></nowiki>