diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-25 09:56:29 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-25 09:56:29 -0700 |
commit | c946ad1fcd87d4cb9c8f45b0b3c553b31fcebec8 (patch) | |
tree | 5e48b1ec06ea95b7376be153ca4505cda214f6f5 /lib | |
parent | d66c496fb1007bbd0b1640496808000c573d95fd (diff) |
If we promote the <H1> element to be the title, hide it so we're not showing it twice.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.dialog.js | 1 |
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()); } |