jquery-mobile/js/jquery.mobile.fieldContain.js

19 lines
523 B
JavaScript
Raw Permalink Normal View History

2010-09-10 22:23:13 +00:00
/*
2010-11-10 00:55:52 +00:00
* jQuery Mobile Framework : "fieldcontain" plugin - simple class additions to make form row separators
2010-09-10 22:23:13 +00:00
* Copyright (c) jQuery Project
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
2010-09-10 22:23:13 +00:00
*/
(function( $, undefined ) {
$.fn.fieldcontain = function( options ) {
return this.addClass( "ui-field-contain ui-body ui-br" );
2010-09-10 22:23:13 +00:00
};
//auto self-init widgets
$( document ).bind( "pagecreate create", function( e ){
$( ":jqmData(role='fieldcontain')", e.target ).fieldcontain();
});
})( jQuery );