1; 2var formOnloadStatus = false; 3 4// start : for touch html5 site ----------------------------------------------------- 5 6var NG_icon2 = NG_icon; 7var loadingDisplay1 = loadingDisplay; 8var loadingDisplay2 = loadingDisplay; 9 10// å ¥åãã§ãã¯ã¨ã©ã¼classä»ä¸å ¥åOKã®classåé¤ 11function addErrorClassName(msgElem) { 12 var name = msgElem.replace(/_status/, ''); 13 var $blockElem = jQuery('#' + name + '_block'); 14 if (0 < $blockElem.length) { 15 if (!$blockElem.hasClass('error_row')) { 16 $blockElem.addClass('error_row'); 17 } 18 if ($blockElem.hasClass('ok_row')) { 19 $blockElem.removeClass('ok_row'); 20 } 21 } 22} 23 24// å ¥åãã§ãã¯ã¨ã©ã¼classåé¤ï¼å ¥åOKã®classä»ä¸ 25function cutErrorClassName(msgElem) { 26 var name = msgElem.replace(/_status/, ''); 27 var $blockElem = jQuery('#' + name + '_block'); 28 if (0 < $blockElem.length) { 29 if ($blockElem.hasClass('error_row')) { 30 $blockElem.removeClass('error_row'); 31 } 32 if (!$blockElem.hasClass('ok_row')) { 33 $blockElem.addClass('ok_row'); 34 } 35 } 36} 37 38// 空ç½OKã§ç©ºã®ç¶æ 39function cutRowStatus(msgElem) { 40 var name = msgElem.replace(/_status/, ''); 41 var $blockElem = jQuery('#' + name + '_block'); 42 $blockElem.removeClass('ok_row error_row'); 43} 44 45// ãã©ã¼ã è¦ç´ ã«å ¥åå¤OKã®classåä»ä¸ (å ¥åç¢ºèªæãã®1ã¤ç®ç¨) 46function addOKInputClassName (msgElem) { 47 var name = msgElem.replace(/_status/, ''); 48 jQuery('#' + name).addClass('ok_input'); 49} 50 51// ãã©ã¼ã è¦ç´ ããå ¥åå¤OKã®classåãåé¤ (å ¥åç¢ºèªæãã®1ã¤ç®ç¨) 52function cutOKInputClassName (msgElem) { 53 var name = msgElem.replace(/_status/, ''); 54 jQuery('#' + name).removeClass('ok_input'); 55} 56 57// ã¨ã©ã¼è¡¨ç¤ºOFF 58function hideErrorDisplay(msgElem, strict) { 59 if (!formOnloadStatus) { 60 return; 61 } 62 var name = msgElem.replace(/_status/, ''); 63 var errorBox = jQuery('.error_box'); 64 var blockElem = jQuery('#' + name + '_block'); 65 var cellBoxElem = blockElem.find('.cell_box'); 66 if (blockElem) { 67 var noticeElem = jQuery('#' + name + '_notice')[0]; 68 if (!strict) { 69 if (blockElem.hasClass('form_alpha')) { 70 blockElem.removeClass('form_alpha'); 71 } 72 } 73 if (blockElem.hasClass(ERROR_CLASS)) { 74 blockElem.removeClass(ERROR_CLASS); 75 if (noticeElem) { 76 noticeElem.style.display = 'none'; 77 } 78 } 79 if (blockElem.hasClass(ERROR_CLASS + '_block')) { 80 blockElem.removeClass(ERROR_CLASS + '_block'); 81 } 82 if (cellBoxElem[0]) { 83 if (cellBoxElem.hasClass('cell_form_error')) { 84 cellBoxElem.removeClass('cell_form_error'); 85 } 86 } 87 } 88 if (errorBox[0] && errorBox[0].style.display !== 'none' && jQuery('.' + ERROR_CLASS).length === 0) { 89 errorBox.css('display', 'none'); 90 } 91} 92 93// éé表示OFF 94function hideDiaphanousDisplay(msgElem) { 95 if (!formOnloadStatus || !globalObj.formErrorStatus) { 96 return; 97 } 98 var name = msgElem.replace(/_status/, ''); 99 var blockElem = jQuery('#' + name + '_block'); 100 if (blockElem && blockElem.hasClass('form_alpha')) { 101 blockElem.removeClass('form_alpha'); 102 } 103} 104 105// åºåãç·ã®è¡¨ç¤ºåãæ¿ã 106function toggleFormLine(msgElem, value) { 107} 108 109function loginCheck(emailElem, passwordElem) { 110 if (jQuery('#' + emailElem).val() && jQuery('#' + passwordElem).val()) { 111 hideErrorDisplay(emailElem); 112 hideErrorDisplay(passwordElem); 113 cutErrorClassName(passwordElem); 114 } 115} 116 117function disableEnterSubmit(elem) { 118 elem.keypress(function (e) { 119 if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { 120 return false; 121 } 122 }); 123} 124 125function setBeforeunloadEvent(pageState, submitFlag, obj, formObj) { 126 if (pageState == 'edit') { 127 if (submitFlag && !checkAllEnpty(obj)) { 128 window.onbeforeunload = function () {return MSG_UNLOAD;}; 129 } 130 obj.change(function (e) { 131 if (jQuery(e.target).val() == '' && checkAllEnpty(obj)) { 132 if (window.onbeforeunload != null) { 133 window.onbeforeunload = null; 134 } 135 } else { 136 if (window.onbeforeunload == null) { 137 window.onbeforeunload = function () {return MSG_UNLOAD;}; 138 } 139 } 140 }); 141 } else { 142 window.onbeforeunload = function () {return MSG_UNLOAD;}; 143 } 144 formObj.submit(function () {window.onbeforeunload = null;}); 145} 146 147function checkAllEnpty(obj) { 148 var empty = true; 149 obj.each(function (index, elem) { 150 if (jQuery(elem)[0] && jQuery(elem).val()) { 151 empty = false;
152 return false; 153 } 154 }); 155 return empty; 156} 157 158// ï¼(å¿ é )ãã»ãã 159function setRequired(msgElem, required) { 160 var $msgElem = jQuery('#' + msgElem), 161 requiredTrClassName = 'required_row', 162 $trElem; 163 if ($msgElem) { 164 $trElem = $msgElem.closest('tr'); 165 if (required) { 166 $msgElem.html(LBL_REQUIRED); 167 $trElem.addClass(requiredTrClassName); 168 } else { 169 $msgElem.html(''); 170 $trElem.removeClass(requiredTrClassName) 171 } 172 } 173} 174// end : for touch html5 site ----------------------------------------------------- 175
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.