Skip to main content

Search and Top Navigation

#5877 closed bug (fixed)

Opened July 30, 2010 04:39AM UTC

Closed August 27, 2010 10:03PM UTC

Last modified November 19, 2010 06:26PM UTC

Dialog: when using the title attribute, the title option should be updated

Reported by: jokerx Owned by:
Priority: minor Milestone: 1.8.5
Component: ui.dialog Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description
<div id="example" title="example">Example</div>
$("#example").dialog()
$("#example").dialog("option","title")//return empty

When you call a dialog from a element have attribute title,title value don't set

this.originalTitle = this.element.attr('title');

I fix it by add more code

this.options.title=this.options.title||this.element.attr('title')
Attachments (0)
Change History (4)

Changed August 27, 2010 09:56PM UTC by scottgonzalez comment:1

description: \ {{{<div id="example" title="example">Example</div> \ $("#example").dialog() \ $("#example").dialog("option","title")//return empty}}} \ \ When you call a dialog from a element have attribute title,title value don't set \ {{{this.originalTitle = this.element.attr('title');}}} \ I fix it by add more code \ {{{this.options.title=this.options.title||this.element.attr('title')}}} \ \ {{{<div id="example" title="example">Example</div> \ $("#example").dialog() \ $("#example").dialog("option","title")//return empty}}} \ \ When you call a dialog from a element have attribute title,title value don't set \ {{{this.originalTitle = this.element.attr('title');}}} \ I fix it by add more code \ {{{this.options.title=this.options.title||this.element.attr('title')}}} \ \
summary: Title dialog return empty if use attribute titleDialog: when using the title attribute, the title option should be updated

Changed August 27, 2010 10:03PM UTC by scottgonzalez comment:2

milestone: TBD1.9
resolution: → fixed
status: newclosed

Fixed in 79ee6f0.

Changed September 10, 2010 05:27PM UTC by scottgonzalez comment:3

milestone: 1.91.8.5

Changed November 19, 2010 06:26PM UTC by Scott González comment:4

Dialog: When using the title attribute, update the title option. Fixes #5877 - Dialog: when using the title attribute, the title option should be updated.

Changeset: 79ee6f0d7b94b71d89f30019e66a1746696d5608