$(function(){ // 신규등록 (연혁) $('#newWin_cHistory').on('click', function(e){ e.preventDefault(); var $this = $(this); var windowInnerHeight = $(window).innerHeight(); windowInnerHeight = windowInnerHeight - 150; var writePage = 'cHistoryWrite'; var popName = 'newWin_cHistory'; $.popupWindow('/about/'+ writePage +'.php', { name: popName, width: 900, height: windowInnerHeight, onUnload: function(){ //alert('close'); } }); }); // 수정 (연혁) $('#content2 .rowData').on('click', function(e){ e.preventDefault(); var $this = $(this); var windowInnerHeight = $(window).innerHeight(); windowInnerHeight = windowInnerHeight - 150; var writePage = 'cHistoryWrite'; var popName = 'newWin_cHistory'; if($this.attr('data-num') != ''){ $.popupWindow('/about/'+ writePage +'.php?&num='+ $this.attr('data-num'), { name: popName, width: 900, height: windowInnerHeight, onUnload: function(){ //alert('close'); } }); } }); });