Commit 62be32f9 authored by Leigh B Stoller's avatar Leigh B Stoller

Add writable argument to maketopmap, to pass along to jacks.

parent fad073ae
......@@ -45,15 +45,18 @@ var jacksInstance;
var jacksInput;
var jacksOutput;
function maketopmap(divname, xml, sshcallback)
function maketopmap(divname, xml, sshcallback, writeable)
{
if (writeable === undefined) {
writeable = false;
}
if (! jacksInstance)
{
jacksInstance = new window.Jacks({
mode: 'viewer',
source: 'rspec',
root: divname,
nodeSelect: false,
nodeSelect: writeable,
readyCallback: function (input, output) {
jacksInput = input;
jacksOutput = output;
......@@ -73,6 +76,7 @@ function maketopmap(divname, xml, sshcallback)
rspec: false,
tour: false,
version: false,
selectInfo: writeable,
menu: false
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment