aboutsummaryrefslogtreecommitdiffstats
path: root/resources/jquery.ui/jquery.ui.button.js
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2011-12-08 19:17:59 +0000
committerSam Reed <reedy@users.mediawiki.org>2011-12-08 19:17:59 +0000
commit04b0f02225fcb51cfa9cf099402b3e7dde15fca5 (patch)
treecaaac8632bbc80738cd7ea062769315c6db2ad92 /resources/jquery.ui/jquery.ui.button.js
parent9b8c83adb4503a5dcff162df571d6da4a4afacc1 (diff)
downloadmediawikicore-04b0f02225fcb51cfa9cf099402b3e7dde15fca5.tar.gz
mediawikicore-04b0f02225fcb51cfa9cf099402b3e7dde15fca5.zip
Update jQuery.ui from 1.8.16 to 1.8.17
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/105575
Diffstat (limited to 'resources/jquery.ui/jquery.ui.button.js')
-rw-r--r--resources/jquery.ui/jquery.ui.button.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/jquery.ui/jquery.ui.button.js b/resources/jquery.ui/jquery.ui.button.js
index b82f42e5f2f5..94dce1c3ba8d 100644
--- a/resources/jquery.ui/jquery.ui.button.js
+++ b/resources/jquery.ui/jquery.ui.button.js
@@ -1,5 +1,5 @@
/*
- * jQuery UI Button 1.8.16
+ * jQuery UI Button 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
@@ -319,7 +319,7 @@ $.widget( "ui.button", {
return;
}
var buttonElement = this.buttonElement.removeClass( typeClasses ),
- buttonText = $( "<span></span>" )
+ buttonText = $( "<span></span>", this.element[0].ownerDocument )
.addClass( "ui-button-text" )
.html( this.options.label )
.appendTo( buttonElement.empty() )
@@ -377,7 +377,7 @@ $.widget( "ui.buttonset", {
},
refresh: function() {
- var ltr = this.element.css( "direction" ) === "ltr";
+ var rtl = this.element.css( "direction" ) === "rtl";
this.buttons = this.element.find( this.options.items )
.filter( ":ui-button" )
@@ -391,10 +391,10 @@ $.widget( "ui.buttonset", {
})
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
.filter( ":first" )
- .addClass( ltr ? "ui-corner-left" : "ui-corner-right" )
+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
.end()
.filter( ":last" )
- .addClass( ltr ? "ui-corner-right" : "ui-corner-left" )
+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
.end()
.end();
},