Frank Kobzik has uploaded a new change for review.

Change subject: frontend: toggle button for spice-html5 debug div
......................................................................

frontend: toggle button for spice-html5 debug div

Change-Id: I3cb05844f169dcc38a850f0c6e8adf961e3e136e
Signed-off-by: Frantisek Kobzik <[email protected]>
---
M backend/manager/modules/services/src/main/webapp/spicehtml5-main.html
1 file changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/84/26984/1

diff --git 
a/backend/manager/modules/services/src/main/webapp/spicehtml5-main.html 
b/backend/manager/modules/services/src/main/webapp/spicehtml5-main.html
index d8ef354..8557ba6 100644
--- a/backend/manager/modules/services/src/main/webapp/spicehtml5-main.html
+++ b/backend/manager/modules/services/src/main/webapp/spicehtml5-main.html
@@ -135,6 +135,19 @@
             }
 
             /*
+             * Toggles messages div visibility
+             */
+            function toggleMessages() {
+                var messagesStyle = 
document.getElementById("message-div").style;
+                if (messagesStyle.display == "none") {
+                    messagesStyle.visibility = "visible";
+                    messagesStyle.display = "block";
+                } else {
+                    messagesStyle.display = "none";
+                }
+            }
+
+            /*
             * This functions emulates the sendCtrlAltDel from inputs.js from
             * version 0.1.3. As soon as we upgrade to that version, this 
function
             * should be removed!
@@ -195,6 +208,9 @@
             <button type="button" onclick="sendCtrlAltDel()">
                 Send Ctrl-Alt-Delete
             </button>
+            <button type="button" onclick="toggleMessages()">
+                Toggle messages output
+            </button>
         </div>
 
         <div id="message-div" class="spice-message" style="display: 
none"></div>


-- 
To view, visit http://gerrit.ovirt.org/26984
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3cb05844f169dcc38a850f0c6e8adf961e3e136e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Frank Kobzik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to