Commit 191f0b0b by Őry Máté

dashboard: add type password button to console

parent 37470325
<div class="btn-toolbar"> <div class="btn-toolbar">
<button id="sendCtrlAltDelButton" class="btn btn-danger small" href="#">Send CtrlAltDel</button> <button id="sendCtrlAltDelButton" class="btn btn-danger small" href="#">Send CtrlAltDel</button>
<button id="sendPasswordButton" class="btn btn-default small" href="#">Type password</button>
</div> </div>
<div class="alert alert-info" id="noVNC_status"> <div class="alert alert-info" id="noVNC_status">
</div> </div>
...@@ -41,10 +42,11 @@ ...@@ -41,10 +42,11 @@
}); });
$('#sendCtrlAltDelButton').click(function() { $('#sendCtrlAltDelButton').click(function() {
rfb.sendCtrlAltDel(); return false;}); rfb.sendCtrlAltDel(); return false;});
$('#akkount-mate').click(function() { $('#sendPasswordButton').click(function() {
return false;}); var pw = '{{instance.pw}}';
$('#akkount-bd').click(function() { for (var i=0; i < pw.length; i++) {
return false;}); rfb.sendKey(pw.charCodeAt(i));
} return false;});
$('a[href$="console"]').click(function() { $('a[href$="console"]').click(function() {
......
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 sign in to comment