function CommonPopup() { this.initialize.apply(this, arguments); } CommonPopup.prototype = { initialize: function() { }, on: function(winType,response) { $('#messages').hide(); $('.input_error').removeClass('input_error'); $('.modal_btns').hide(); $('#modal_popup_contents').empty(); contents = response.errorInfo[0].errorMsg; $('#modal_popup_contents').append(contents); if(winType == 1){ $('#modal_btn_ok').text("OK"); $('#modal_btn_ok').off(); $('#modal_btn_ok').click(function() { $('#next_modal_window').removeClass('on'); $('html').removeAttr('style'); indicator.on(); if(pager.htmlFile == "KSS0050.html"){ Pager.prototype.goKSS0060(Pager.prototype.getKSS0060RequestParams("KSS0060_DISPLAY","ok")); } else { Pager.prototype.goKSS0061(Pager.prototype.getKSS0060RequestParams("KSS0060_DISPLAY","ok")); } return false; }); $('.modal_ok').show(); }else{ $('#modal_btn_yes').text("はい"); $('#modal_btn_no').text("いいえ"); $('#modal_btn_yes').off(); $('#modal_btn_yes').click(function() { $('#next_modal_window').removeClass('on'); $('html').removeAttr('style'); indicator.on(); if(pager.htmlFile == "KSS0050.html"){ Pager.prototype.goKSS0060(Pager.prototype.getKSS0060RequestParams("KSS0060_DISPLAY","yes")); } else { Pager.prototype.goKSS0061(Pager.prototype.getKSS0060RequestParams("KSS0060_DISPLAY","yes")); } return false; }); $('#modal_btn_no').off(); $('#modal_btn_no').click(function() { $('#next_modal_window').removeClass('on'); $('html').removeAttr('style'); return false; }); $('.modal_confirm').show(); } $('#next_modal_window').addClass('on'); $('body,html').scrollTop(0); $('html').attr('style','overflow:hidden;'); }, };