Merge pull request #5673 from errorx666/jqueryui-buttonoptions

Update JQueryUI ButtonOptions interface
This commit is contained in:
Boris Yankov
2015-09-12 00:08:41 +03:00
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1438,6 +1438,7 @@ function test_dialog() {
});
$(".selector").dialog({ autoOpen: false });
$(".selector").dialog({ buttons: { Ok: function () { $(this).dialog("close"); } } });
$(".selector").dialog({ buttons: [ { text: "Ok", click: function () { $(this).dialog("close"); } } ] } );
$(".selector").dialog({ closeOnEscape: false });
$(".selector").dialog({ closeText: "hide" });
$(".selector").dialog({ dialogClass: "alert" });
+2 -1
View File
@@ -86,7 +86,8 @@ declare module JQueryUI {
disabled?: boolean;
icons?: any;
label?: string;
text?: boolean;
text?: string|boolean;
click?: (event?: Event) => void;
}
interface Button extends Widget, ButtonOptions {