diff --git a/WebContent/jsp/common/scheduler/schedulerMan.jsp b/WebContent/jsp/common/scheduler/schedulerMan.jsp index 1949443..e212fd8 100644 --- a/WebContent/jsp/common/scheduler/schedulerMan.jsp +++ b/WebContent/jsp/common/scheduler/schedulerMan.jsp @@ -31,19 +31,19 @@ function init(){ new makeOptions("CODE","NAME").setObj($("select[name=searchJobInst]")).setNoValueInclude(true).setNoValue("", "<%= localeMessage.getString("combo.all")%>").setData(json.instanceList).rendering(); - if(typeof callback === 'function') { - callback(url,key); - } + putSelectFromParam(); + + initGrid(); }, error:function(e){ alert(e.responseText); } }); } -$(document).ready(function() { - init(); + +function initGrid() { var gridPostData = getSearchForJqgrid("cmd","LIST"); //jqgrid에서는 object 로 - console.log(gridPostData); + $('#grid').jqGrid({ datatype:"json", mtype: 'POST', @@ -125,9 +125,13 @@ $(document).ready(function() { } }); - resizeJqGridWidth('grid','content_middle','1000'); +} + +$(document).ready(function() { + init(); + $("#btn_search").click(function(){ var postData = getSearchForJqgrid("cmd","LIST"); $("#grid").setGridParam({ postData: postData ,page:"1" }).trigger("reloadGrid");