aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/dialog
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-16 19:26:22 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-26 10:28:23 +0100
commit999617343f7b813dc1c8d9c9048489e4d99d0470 (patch)
tree94df0cfa0fc51c411d259b71c10b06bcf6b00fb8 /tests/visual/dialog
parentd8b98ec3bb077224aff381101e6d845ea6ffe7a3 (diff)
downloadjquery-ui-999617343f7b813dc1c8d9c9048489e4d99d0470.tar.gz
jquery-ui-999617343f7b813dc1c8d9c9048489e4d99d0470.zip
Dialog: Pass through icons and showText (as 'text') options to button. Fixes #6830 - Allow Icons to be specified for Dialog buttons.
Diffstat (limited to 'tests/visual/dialog')
-rw-r--r--tests/visual/dialog/complex-dialogs.html13
1 files changed, 12 insertions, 1 deletions
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
}
]
}),