forked from jquery-archive/jquery-mobile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes jquery-archivegh-7715
- Loading branch information
Showing
2 changed files
with
11 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,18 @@ $.widget( "mobile.flipswitch", $.extend({ | |
offText: "Off", | ||
theme: null, | ||
enhanced: false, | ||
|
||
// Deprecated in 1.5 | ||
wrapperClass: null, | ||
|
||
// Deprecated in 1.5 | ||
corners: true, | ||
|
||
// Deprecated in 1.5 | ||
mini: false, | ||
classes: { | ||
"ui-flipswitch": "", | ||
"ui-flipswitch-on": "", | ||
"ui-flipswitch": "ui-corner-all ui-shadow-inset ", | ||
"ui-flipswitch-on": "ui-shadow", | ||
"ui-flipswitch-off": "", | ||
"ui-flipswitch-active": "", | ||
"ui-flipswitch-input": "" | ||
|
@@ -124,14 +130,14 @@ $.widget( "mobile.flipswitch", $.extend({ | |
options.offText : element.find( "option" ).eq( 0 ).text(); | ||
|
||
on | ||
.addClass( this._classes( "ui-flipswitch-on" ) + " ui-btn ui-shadow ui-btn-inherit" ) | ||
.addClass( this._classes( "ui-flipswitch-on" ) + " ui-btn ui-btn-inherit" ) | ||
.text( onText ); | ||
off | ||
.addClass( this._classes( "ui-flipswitch-off" ) ) | ||
.text( offText ); | ||
|
||
flipswitch | ||
.addClass( this._classes( "ui-flipswitch" ) + " ui-shadow-inset " + | ||
.addClass( this._classes( "ui-flipswitch" ) + | ||
This comment has been minimized.
Sorry, something went wrong.
arschmitz
|
||
"ui-bar-" + theme + " " + | ||
( options.wrapperClass ? options.wrapperClass : "" ) + " " + | ||
( ( element.is( ":checked" ) || | ||
|
We still want the demos for this we just want to show the proper way to set them which is through the classes option