]> source.dussan.org Git - jquery-ui.git/commitdiff
Popup: Missing semicolon. Can't use :ui-button selected if button isn't loaded.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 5 Sep 2011 15:59:36 +0000 (17:59 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 5 Sep 2011 15:59:36 +0000 (17:59 +0200)
ui/jquery.ui.popup.js

index 508209a557b99bdc454ea49c9ac78ced701a538f..8e5cf198cced8c737d92eae93f5b308197aa02b0 100644 (file)
@@ -45,13 +45,13 @@ $.widget( "ui.popup", {
                        .attr( "aria-owns", this.element.attr( "id" ) );
 
                this.element
-                       .addClass( "ui-popup" )
+                       .addClass( "ui-popup" );
                this.close();
 
                this._bind(this.options.trigger, {
                        keydown: function( event ) {
                                // prevent space-to-open to scroll the page, only happens for anchor ui.button
-                               if ( this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) {
+                               if ( $.ui.button && this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) {
                                        event.preventDefault();
                                }
                                // TODO handle SPACE to open popup? only when not handled by ui.button