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;
49 $( c ).data( 'max-height', _getHeight( self ) );
51 if ( ! $( c ).data( 'max-height' ) ) {
52 $( c ).data( 'max-height', document.body.clientHeight );
54 $( c ).css( 'max-height', $( c ).data( 'max-height' ) );
57 } ( $.mobile.collapsible.prototype.options ) );
60 $.mobile.button.prototype.options.theme = "s";
61 $.fn.buttonMarkup.defaults.theme = "s";
63 // Default theme swatch
64 $.mobile.page.prototype.options.theme = "s";
66 // Original scale of the theme
67 $.tizen.frameworkData.defaultViewportWidth = 360; // Fit to device-width
68 $.tizen.frameworkData.defaultFontSize = 22;