Search and Top Navigation
#8102 closed bug (notabug)
Opened February 06, 2012 01:47PM UTC
Closed February 06, 2012 01:50PM UTC
Dialog documentation error.
Reported by: | brunofunny | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.17 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When reading:
Initialize a dialog with the buttons option specified.
$( ".selector" ).dialog({ buttons: [ { text: "Ok", click: function() { $(this).dialog("close"); } } ] });
when adding button it should be a bracket {} not a [], like:
$( ".selector" ).dialog({ buttons: { {text: "Ok"}, {text: "Cancel"} } });
Attachments (0)
Change History (2)
Changed February 06, 2012 01:49PM UTC by comment:1
Changed February 06, 2012 01:50PM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
You're confusing two different syntaxes. The proposed syntax isn't even valid JavaScript. The documentation is correct.
Diloag documentation link: http://jqueryui.com/demos/dialog/#option-buttons