1 
  2 /**
  3  * @name	CeL 輸入教育程度的範例 module
  4  * @fileoverview
  5  * 本檔案包含了輸入教育程度的 functions。
  6  * @since	2010/1/7 23:50:43
  7  */
  8 
  9 
 10 if (typeof CeL === 'function')
 11 CeL.setup_module('interact.form.education', {
 12 sub_module : {
 13 TW : {
 14 require : 'interact.form.select_input.',
 15 code : function(library_namespace, load_arguments) {
 16 
 17 
 18 var
 19 
 20 
 21 //	class private	-----------------------------------
 22 
 23 
 24 /**
 25  * inherit select_input
 26  * @class	輸入教育程度的 functions
 27  * @example
 28  * var education_form = new CeL.education.TW('education');
 29  */
 30 _ = library_namespace.inherit('interact.form.select_input', function() {
 31 	var _t = this;
 32 	if (!_t.loaded)
 33 		return;
 34 
 35 	_t.setClassName('education_input');
 36 	_t.setSearch('includeKeyWC');
 37 	_t.setAllList(_t.default_list);
 38 
 39 	_t.setProperty('onblur', function() {
 40 		if(!_t.clickNow)
 41 			_t.triggerToInput(0);
 42 	});
 43 
 44 	// show arrow
 45 	_t.triggerToInput(1);
 46 	_t.focus(0);
 47 });
 48 
 49 
 50 //	class public interface	---------------------------
 51 
 52 
 53 
 54 
 55 //	instance public interface	-------------------
 56 
 57 //	最高教育程度	http://wwwc.moex.gov.tw/ct.asp?xItem=250&CtNode=1054
 58 _.prototype.default_list =
 59 	//請填寫
 60 	'博士(含)以上,碩士/研究所,學士/大學院校,副學士/專科,高中/高職,國中/國民中學,國小(含)以下,其他:請說明'
 61 	.split(',');
 62 
 63 
 64 
 65 /**
 66  * 不 extend 的 member.
 67  * '*': 完全不 extend.
 68  * this: 連 module 本身都不 extend 到 library name-space 下.
 69  * @ignore
 70  */
 71 CeL.interact.form.education
 72 .no_extend = '*,this';
 73 
 74 return (
 75 	CeL.interact.form.education
 76 );
 77 }
 78 //	.TW
 79 }
 80 
 81 //	sub_module
 82 }
 83 });
 84 
 85