1 (function( $, undefined ) {
2 //$.mobile.page.prototype.options.backBtnTheme = "s";
4 // Clear default theme for child elements
8 } ( $.mobile.page.prototype.options ) );
17 } ( $.mobile.listview.prototype.options ) );
21 o.heading = o.heading + ',li'; // Add listitem as a heading
23 o.iconPos = "right"; // Move iconPos to right position
24 o.collapsedIcon = "arrow-u";
25 o.expandedIcon = "arrow-d";
27 o.customEventHandler = function ( isCollapse ) {
29 c = $(self).children('.ui-collapsible-content')[0];
31 function _getHeight( el ) {
33 heading = $( el ).children('.ui-collapsible-heading')[0],
34 content = $( el ).children('.ui-collapsible-content')[0];
36 h += heading.clientHeight;
37 $( content ).children().each ( function ( idx, _el ) {
38 if ( $( _el ).hasClass( 'ui-collapsible' ) ) { // recursive call for nested collapsible list
39 h += _getHeight( _el );
42 h += _el.clientHeight;
48 if ( isCollapse ) { // collapse!
49 // remember current height
50 $( c ).data( 'max-height', _getHeight( self ) );
51 $( self ).parentsUntil( '.ui-page', '.ui-collapsible' ).each( function( idx, el ) {
52 var content = $( el ).children('.ui-collapsible-content')[0];
53 $( content ).data( 'max-height', _getHeight( el ) );
57 h = $( c ).data( 'max-height' );
59 h = document.body.clientHeight;
60 $( c ).data( 'max-height', h );
62 $( c ).css( 'max-height', h );
63 $( self ).parentsUntil( '.ui-page', '.ui-collapsible' ).each( function( idx, el ) {
64 var content = $( el ).children('.ui-collapsible-content')[0];
65 $( content ).css( 'max-height', _getHeight( el ) );
69 } ( $.mobile.collapsible.prototype.options ) );
72 $.mobile.button.prototype.options.theme = "s";
73 $.fn.buttonMarkup.defaults.theme = "s";
75 // Default theme swatch
76 $.mobile.page.prototype.options.theme = "s";
78 // Original scale of the theme
79 $.tizen.frameworkData.defaultViewportWidth = 360; // Fit to device-width
80 $.tizen.frameworkData.defaultFontSize = 22;