Skip to content

Commit

Permalink
bug fix: if showChildToolbar is called to show the currently visible …
Browse files Browse the repository at this point in the history
…child, do nothing rather than removing the child
  • Loading branch information
dound committed Dec 7, 2008
1 parent 710e527 commit e6294f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jtoolbar.js
Expand Up @@ -853,6 +853,11 @@ var JTB = function() {

/** shows a child toolbar (makes childToolbar a child if it isn't already one) */
JTB.Toolbar.prototype.showChildToolbar = function(childToolbar, x, y) {
/* do nothing if this child is already being shown by this toolbar */
if(childToolbar == this.vis_tb_child) {
return;
}

/* remove the child from any old parent */
childToolbar.hideFromParentToolbar();

Expand Down

0 comments on commit e6294f7

Please sign in to comment.