summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-25 09:56:29 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-25 09:56:29 -0700
commitc946ad1fcd87d4cb9c8f45b0b3c553b31fcebec8 (patch)
tree5e48b1ec06ea95b7376be153ca4505cda214f6f5
parentd66c496fb1007bbd0b1640496808000c573d95fd (diff)
If we promote the <H1> element to be the title, hide it so we're not showing it twice.
-rw-r--r--lib/gallery.dialog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index f280a525..6ec8c634 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -40,6 +40,7 @@
$(".ui-dialog-titlebar").remove();
} else if ($("#g-dialog h1").length) {
$("#g-dialog").dialog('option', 'title', $("#g-dialog h1:eq(0)").html());
+ $("#g-dialog h1:eq(0)").hide();
} else if ($("#g-dialog fieldset legend").length) {
$("#g-dialog").dialog('option', 'title', $("#g-dialog fieldset legend:eq(0)").html());
}