mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 03:44:43 +00:00
whitespace and missing semicolon fix
This commit is contained in:
parent
202ed5ff2c
commit
badefe1ee1
1 changed files with 11 additions and 11 deletions
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (c) jQuery Project
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
*/
|
||||
(function($, undefined ) {
|
||||
|
||||
$.fn.buttonMarkup = function( options ){
|
||||
|
|
@ -22,18 +22,18 @@ $.fn.buttonMarkup = function( options ){
|
|||
|
||||
// if not, try to find closest theme container
|
||||
if ( !o.theme ) {
|
||||
var themedParent = el.closest("[class*='ui-bar-'],[class*='ui-body-']");
|
||||
var themedParent = el.closest("[class*='ui-bar-'],[class*='ui-body-']");
|
||||
o.theme = themedParent.length ?
|
||||
/ui-(bar|body)-([a-z])/.exec( themedParent.attr("class") )[2] :
|
||||
"c";
|
||||
}
|
||||
|
||||
buttonClass = "ui-btn ui-btn-up-" + o.theme;
|
||||
|
||||
|
||||
if ( o.inline ) {
|
||||
buttonClass += " ui-btn-inline";
|
||||
}
|
||||
|
||||
|
||||
if ( o.icon ) {
|
||||
o.icon = "ui-icon-" + o.icon;
|
||||
o.iconpos = o.iconpos || "left";
|
||||
|
|
@ -41,27 +41,27 @@ $.fn.buttonMarkup = function( options ){
|
|||
iconClass = "ui-icon " + o.icon;
|
||||
|
||||
if ( o.shadow ) {
|
||||
iconClass += " ui-icon-shadow"
|
||||
iconClass += " ui-icon-shadow";
|
||||
}
|
||||
}
|
||||
|
||||
if ( o.iconpos ) {
|
||||
buttonClass += " ui-btn-icon-" + o.iconpos;
|
||||
|
||||
|
||||
if ( o.iconpos == "notext" && !el.attr("title") ) {
|
||||
el.attr( "title", el.text() );
|
||||
}
|
||||
}
|
||||
|
||||
if ( o.corners ) {
|
||||
|
||||
if ( o.corners ) {
|
||||
buttonClass += " ui-btn-corner-all";
|
||||
innerClass += " ui-btn-corner-all";
|
||||
}
|
||||
|
||||
|
||||
if ( o.shadow ) {
|
||||
buttonClass += " ui-shadow";
|
||||
}
|
||||
|
||||
|
||||
el
|
||||
.attr( "data-theme", o.theme )
|
||||
.addClass( buttonClass );
|
||||
|
|
@ -71,7 +71,7 @@ $.fn.buttonMarkup = function( options ){
|
|||
"</D>").replace(/D/g, o.wrapperEls);
|
||||
|
||||
el.wrapInner( wrap );
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
$.fn.buttonMarkup.defaults = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue