Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[collapsible] move default values from collapsedIcon / expandedIcon /…
… iconPos in the "options" section of the widget instead in the main code .

               so we have the ability do not display a icon for collapsible .
  • Loading branch information
ErwanMAS committed Nov 24, 2012
1 parent 9be2bc9 commit 2af7570
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/widgets/collapsible.js
Expand Up @@ -15,6 +15,9 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
collapseCueText: " click to collapse contents",
collapsed: true,
heading: "h1,h2,h3,h4,h5,h6,legend",
collapsedIcon: "plus",
expandedIcon: "minus",
iconPos: "left",
theme: null,
contentTheme: null,
inset: true,
Expand Down Expand Up @@ -96,8 +99,8 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
collapsible.addClass( collapsibleClasses );
}

collapsedIcon = $el.jqmData( "collapsed-icon" ) || o.collapsedIcon || "plus";
expandedIcon = $el.jqmData( "expanded-icon" ) || o.expandedIcon || "minus";
collapsedIcon = $el.jqmData( "collapsed-icon" ) || o.collapsedIcon ;
expandedIcon = $el.jqmData( "expanded-icon" ) || o.expandedIcon ;

collapsibleHeading
//drop heading in before content
Expand All @@ -111,7 +114,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
.buttonMarkup({
shadow: false,
corners: false,
iconpos: $el.jqmData( "iconpos" ) || o.iconpos || "left",
iconpos: $el.jqmData( "iconpos" ) || o.iconpos ,
icon: collapsedIcon,
mini: o.mini,
theme: o.theme
Expand Down

0 comments on commit 2af7570

Please sign in to comment.