From 999617343f7b813dc1c8d9c9048489e4d99d0470 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Fri, 16 Nov 2012 19:26:22 +0100 Subject: Dialog: Pass through icons and showText (as 'text') options to button. Fixes #6830 - Allow Icons to be specified for Dialog buttons. --- tests/visual/dialog/complex-dialogs.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/visual/dialog/complex-dialogs.html') diff --git a/tests/visual/dialog/complex-dialogs.html b/tests/visual/dialog/complex-dialogs.html index 8e5d84d3d..46d2539c5 100644 --- a/tests/visual/dialog/complex-dialogs.html +++ b/tests/visual/dialog/complex-dialogs.html @@ -28,10 +28,21 @@ width: 500, buttons: [ { + click: $.noop, + icons: { + primary: "ui-icon-check" + }, text: "Ok" }, { - text: "Cancel" + click: function() { + $( this ).dialog( "close" ); + }, + icons: { + primary: "ui-icon-cancel" + }, + text: "Cancel", + showText: false } ] }), -- cgit v1.2.3