Skip to content

Commit

Permalink
Fix buttons in modalBoxes.
Browse files Browse the repository at this point in the history
My inlineEditor change had a hide() in the wrong place that caused
buttons on modalBoxes to be invisible. This moves the hide() call to the
inlineEditor's buttons.
  • Loading branch information
chipx86 committed Nov 22, 2012
1 parent f894b09 commit 84afd3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions djblets/media/js/jquery.gravy.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ $.widget("ui.inlineEditor", {
if (this.options.showButtons) {
this._buttons = $("<div/>")
.addClass("buttons")
.appendTo(this._form);
.appendTo(this._form)
.hide();

if (!this.options.multiline) {
this._buttons.css("display", "inline");
Expand Down Expand Up @@ -843,8 +844,7 @@ $.widget("ui.modalBox", {
if (e.target.tagName == "INPUT") {
self.element.modalBox("destroy");
}
})
.hide();
});

this.box.appendTo("body")

Expand Down

0 comments on commit 84afd3e

Please sign in to comment.