/// $(document).ready(function () { if (!nztrueLib.isNullOrEmpty($.cookie('bandMessage'))) { // ¹êµå ÄíÅ° ¸Þ½ÃÁö¸¦ ¶ç¿ó´Ï´Ù. var bandMessage = $.cookie('bandMessage'); var msg = JSON.parse(bandMessage); nztrueLib.bandMessage(msg.type, msg.text, msg.time); $.cookie('bandMessage', null, { expires: -1, path: '/' }); } $(document).on('mousedown', '.readonly', function (e) { // ÀÌ ÇÔ¼ö´Â readonly¶ó´Â Ŭ·¡½º¸¦ °¡Áø ¿ä¼Ò¸¦ Ŭ¸¯ ½Ã º¯È­°¡ ¾ø°Ô ó¸®ÇÕ´Ï´Ù. e.preventDefault(); this.blur(); window.focus(); }); $(document).on('focus', 'input.date', function () { $(this).datepicker({ dateFormat: 'yy-mm-dd', closeText: '´Ý±â', prevText: 'ÀÌÀü´Þ', nextText: '´ÙÀ½´Þ', currentText: '¿À´Ã', monthNames: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù'], monthNamesShort: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù'], dayNames: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], dayNamesShort: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], dayNamesMin: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], weekHeader: 'Wk', firstDay: 0, isRTL: false, duration: 200, showAnim: 'show', showMonthAfterYear: true, yearSuffix: '³â', showOtherMonths: true, selectOtherMonths: true, onChangeMonthYear: function (year, month, inst) { }, beforeShow: function (input, inst) { }, onSelect: function (dateText, inst) { } }); }); $(document).on('click', '#bandMessage #bandMessageWrapper', function () { $(this).find('.message').removeClass('show').hide(); }); if (!window._cordovaNative) { $(document).on('click', 'a[data-href]', function () { nztrueLib.openPop($(this).data('href'), $(this).data('target')); }); } //¾Û¿¡¼­ Á¢¼ÓÇßÀ» ¶§ ÀÚµ¿ ·Î±×ÀΠó¸® if (window.localStorage !== null && window._cordovaNative !== null) { var loginInfo = window.localStorage.getItem("nztrueCMS_Login_Info"); if (loginInfo !== null && loginInfo != "") { $.ajax({ type: 'POST', url: '/api/autoLogin', data: { 'cookie': loginInfo }, dataType: 'html', success: function (msg) { if (msg == "success") { window.localStorage.setItem("nztrueCMS_Login_Info", $.cookie("nztrueCMS_Login_Info")); location.href = "/"; } } }); } } });