aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDouglas Neiner <doug@pixelgraphics.us>2011-03-02 12:52:21 -0500
committergnarf <gnarf@gnarf.net>2011-03-08 00:52:07 -0600
commit6008a30fcb8e59f040d290400cfbdb2e0cc96b01 (patch)
tree06dde61cb17ec142b34bf4c11101bcebf0b18e68 /ui
parentea89522828386b3c0ca0c8a855a5f0e8efbad188 (diff)
downloadjquery-ui-6008a30fcb8e59f040d290400cfbdb2e0cc96b01.tar.gz
jquery-ui-6008a30fcb8e59f040d290400cfbdb2e0cc96b01.zip
Dialog: Added a class to dialog wrapper when it is currently displaying buttons, includes unit tests for changes. Fixed #7057 - An extra class is needed on the dialog wrapper to specify when a buttonset is showing
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.dialog.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 0183dd801..493783896 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -353,7 +353,10 @@ $.widget("ui.dialog", {
button.button();
}
});
+ self.uiDialog.addClass( "ui-dialog-buttons" );
uiDialogButtonPane.appendTo( self.uiDialog );
+ } else {
+ self.uiDialog.removeClass( "ui-dialog-buttons" );
}
},