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
|
2010-11-20 03:47:47 +00:00
|
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
|
|
|
* http://jquery.org/license
|
2010-09-10 22:23:13 +00:00
|
|
|
*/
|
2011-06-28 23:48:47 +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
|
|
|
};
|
2011-06-28 23:48:47 +00:00
|
|
|
|
2011-07-27 22:42:16 +00:00
|
|
|
//auto self-init widgets
|
|
|
|
|
$( document ).bind( "pagecreate create", function( e ){
|
|
|
|
|
$( ":jqmData(role='fieldcontain')", e.target ).fieldcontain();
|
|
|
|
|
});
|
|
|
|
|
|
2011-06-29 03:46:23 +00:00
|
|
|
})( jQuery );
|