UNPKG

cejs

Version:

A JavaScript module framework that is simple to use.

55 lines 2.74 kB
��/** * @name CeL 8�eQYe�� z�^ (educational attainment, gؚx[wk) �v�{�O module0 * @fileoverview ,g�jHhS+T�N8�eQYe�� z�^�v (educational attainment, gؚx[wk) functions0 * @since 2010/1/7 23:50:43 I�uR0<br /> * 2012/12/18 0:16:9 �p .run() Ԛ6R͑�[0 */ 'use strict'; if (typeof CeL === 'function') CeL.run({ name : 'interact.form.education.TW', require : 'interact.form.select_input.', code : function(library_namespace) { // class private ----------------------------------- function education_TW() { // applies the parent's constructor. library_namespace.select_input.apply(this, arguments); if (!this.loaded) return; this.setClassName('education_input'); this.setSearch('includeKeyWC'); this.setAllList(this.default_list); var _this = this; this.setProperty('onblur', function() { if (!_this.clickNow) _this.toggleToInput(0); }); // show arrow. this.toggleToInput(1); this.focus(0); } // gؚYe�� z�^ // http://wwwc.moex.gov.tw/ct.asp?xItem=250&CtNode=1054 education_TW.prototype.default_list = // ˊkX�[ 'ZS�X�+T ��N N,�x�X/xvz@b,x[�X/'Yx[b�!h,oRx[�X/\�y,ؚ-N/ؚw�, W-N/ Wl-Nx[, W\�+T ��N N,vQ�N�ˊ��f' .split(','); library_namespace.inherit(education_TW, 'interact.form.select_input'); return education_TW; }, // this is a sub module. no_extend : '*,this' });