Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

give the entire dialog object to configurable dialog show/hide functions

  • Loading branch information...
commit 698fd061d7116e14c2d93f35a4074759fbf305f4 1 parent 0626d69
@qrush authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/editor.js
  2. +2 −2 src/toolbar/dialog.js
View
4 src/editor.js
@@ -62,11 +62,11 @@
dialog: {
// change how the dialogs are displayed
show: function(dialog) {
- dialog.style.display = "";
+ dialog.container.style.display = "";
},
// change how the dialogs are hidden
hide: function(dialog) {
- dialog.style.display = "none";
+ dialog.container.style.display = "none";
}
}
};
View
4 src/toolbar/dialog.js
@@ -182,7 +182,7 @@
this.interval = setInterval(function() { that._interpolate(true); }, 500);
}
dom.addClass(this.link, CLASS_NAME_OPENED);
- this.config.show(this.container);
+ this.config.show(this);
this.fire("show");
if (firstField && !elementToChange) {
try {
@@ -198,7 +198,7 @@
clearInterval(this.interval);
this.elementToChange = null;
dom.removeClass(this.link, CLASS_NAME_OPENED);
- this.config.hide(this.container);
+ this.config.hide(this);
this.fire("hide");
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.