mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	form wip
This commit is contained in:
		| @ -7,10 +7,24 @@ | ||||
|  * @author Qiang Xue <qiang.xue@gmail.com> | ||||
|  * @since 2.0 | ||||
|  */ | ||||
| ;(function($) { | ||||
|  | ||||
| 	$.yii = { | ||||
| 		version : '2.0' | ||||
| yii = (function ($) { | ||||
| 	var pub = { | ||||
| 		version: '2.0' | ||||
| 	}; | ||||
|  | ||||
| 	return pub; | ||||
| })(jQuery); | ||||
|  | ||||
| jQuery(document).ready(function ($) { | ||||
| 	// call the init() method of every module | ||||
| 	var init = function (module) { | ||||
| 		if ($.isFunction(module.init) && (module.trigger == undefined || $(module.trigger).length)) { | ||||
| 			module.init(); | ||||
| 		} | ||||
| 		$.each(module, function () { | ||||
| 			if ($.isPlainObject(this)) { | ||||
| 				init(this); | ||||
| 			} | ||||
| 		}); | ||||
| 	}; | ||||
| 	init(yii); | ||||
| }); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Qiang Xue
					Qiang Xue