Skip to content

Commit d2d4742

Browse files
committed
Dialog: Fixing the default value of the buttons option
Ref jquery#208
1 parent 9acfd95 commit d2d4742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/dialog.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<desc>If set to <code>true</code>, the dialog will automatically open upon initialization. If <code>false</code>, the dialog will stay hidden until the <a href="#method-open"><code>open()</code></a> method is called.</desc>
102102
<type name="Boolean" />
103103
</option>
104-
<option name="buttons" default="{}" example-value='[ { text: "Ok", click: function() { $( this ).dialog( "close" ); } } ]'>
104+
<option name="buttons" default="[]" example-value='[ { text: "Ok", click: function() { $( this ).dialog( "close" ); } } ]'>
105105
<desc>Specifies which buttons should be displayed on the dialog. The context of the callback is the dialog element; if you need access to the button, it is available as the target of the event object.</desc>
106106
<type name="Object">
107107
<desc>The keys are the button labels and the values are the callbacks for when the associated button is clicked.</desc>

0 commit comments

Comments
 (0)