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 emptyWhen 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 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 title → Dialog: when using the title attribute, the title option should be updated |
Changed August 27, 2010 10:03PM UTC by comment:2
| milestone: | TBD → 1.9 |
|---|---|
| resolution: | → fixed |
| status: | new → closed |
Fixed in 79ee6f0.
Changed September 10, 2010 05:27PM UTC by comment:3
| milestone: | 1.9 → 1.8.5 |
|---|