Changes

Jump to: navigation, search

Learning Collaborative Development Lab Fall 2008 Results

664 bytes added, 14:05, 9 September 2008
no edit summary
Utils.openUrlInBrowser( "http://zenit.senecac.on.ca/~chris.tyler/planet/" );
}
}
})
 
This goes to the printable version of the current wiki page
CmdUtils.CreateCommand({
name: "print",
author: {name: "Patrick Lam"},
preview: "Takes the current wiki page and make it printable",
execute: function() {
var currentPath = CmdUtils.getDocumentInsecure().location.href;
var wikiHome = currentPath.substring(0, currentPath.lastIndexOf("/"));
/* Gets the title of the document in wiki */
var wikiTitle = currentPath.substring(currentPath.lastIndexOf("/") + 1);
/* Makes the printable version url */
var printURL = wikiHome + "?title=" + wikiTitle + "&printable=yes";
Utils.openUrlInBrowser( printURL );
}
})
1
edit

Navigation menu