Skip to content

Commit

Permalink
use id to hide element
Browse files Browse the repository at this point in the history
  • Loading branch information
mjharkin committed Apr 25, 2019
1 parent ccc8037 commit ae69e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trunk/src/html5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<ul class="Menu -horizontal">
<li class="-hasSubmenu -noChevron">
<a href="#" title="Xpra" class="noDrag" data-icon="menu"></a>
<ul>
<ul id="menu_list">
<li class="-hasSubmenu" >
<a data-icon="apps" href="#">Start</a>
<ul id="startmenu">
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ XpraClient.prototype._process_hello = function(packet, ctx) {

a2.onclick = function(){
ctx.start_command(this.innerText, this.title, ignore);
this.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.className="-hide";
document.getElementById("menu_list").className="-hide";

};

Expand Down

0 comments on commit ae69e1f

Please sign in to comment.