svn path=/package_branches/invirt-web/ajaxterm-rebased/; revision=2758
opt_color.attachEvent("onclick", do_color);
opt_paste.attachEvent("onclick", do_paste);
}
opt_color.attachEvent("onclick", do_color);
opt_paste.attachEvent("onclick", do_paste);
}
- document.onkeypress=keypress;
- document.onkeydown=keydown;
+ $('term').onkeypress=keypress;
+ $('term').onkeydown=keydown;
force=true;
timeout=window.setTimeout(update,100);
}
force=true;
timeout=window.setTimeout(update,100);
}
<script type="text/javascript">
window.onload=function() {
t=ajaxterm.Terminal("term", ${machine.machine_id});
<script type="text/javascript">
window.onload=function() {
t=ajaxterm.Terminal("term", ${machine.machine_id});
+<div tabindex="0" id="term"></div>
<div style="clear: both;"></div>
<div style="clear: both;"></div>