// TODO: 'create' is called twice!!
});
});
+
+ // Expand all textarea height automatically
+ $('#ButtonNolist').live( "pagecreate", function ( ev ) {
+ var page = $( ev.target );
+ $( page ).bind( 'pageshow' , function ( ) {
+ var textarea = page.find('textarea');
+ $( textarea ).each( function ( idx, el ) {
+ var h = Math.max( el.clientHeight, el.scrollHeight );
+ $( el ).height( h );
+ } );
+ } );
+ } );
+
});
$(document).bind( "pageinit" , function() {
- $.mobile.tizen.enableSelection($("div:jqmData(role='page')"), 'none');
+ $.mobile.tizen.enableSelection( $("div:jqmData(role='page')"), 'none' );
});
$(document).ready( function () {
// add current datetime with browser language format
<script src="js/"></script>
<script src="theme.js"></script>
<script src="js/jquery.mobile.forms.button.extension.js"></script>
+
+
</head>
<body>
-<div data-role="page" id="ButtonDemo" data-add-back-btn="true" >
+<div data-role="page" id="ButtonNolist" data-add-back-btn="true" >
<div data-role="header" data-position="fixed">
<h1>Buttons</h1>
</div>
<div data-role="footer">
</div>
</div>
-
</body>
</html>