mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
19 lines
No EOL
523 B
JavaScript
19 lines
No EOL
523 B
JavaScript
/*
|
|
* jQuery Mobile Framework : "fieldcontain" plugin - simple class additions to make form row separators
|
|
* Copyright (c) jQuery Project
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
* http://jquery.org/license
|
|
*/
|
|
|
|
(function( $, undefined ) {
|
|
|
|
$.fn.fieldcontain = function( options ) {
|
|
return this.addClass( "ui-field-contain ui-body ui-br" );
|
|
};
|
|
|
|
//auto self-init widgets
|
|
$( document ).bind( "pagecreate create", function( e ){
|
|
$( ":jqmData(role='fieldcontain')", e.target ).fieldcontain();
|
|
});
|
|
|
|
})( jQuery ); |