
var pType=Runner.pages.constants.PAGE_LIST;Runner.pages.PageSettings.addPageEvent("senuc_certificados_voluntario",pType,"afterPageReady",function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='New_Button';if(!pageObj.buttonEventBefore['New_Button']){pageObj.buttonEventBefore['New_Button']=function(params,ctrl,pageObj,proxy,pageid,rowData){}}
if(!pageObj.buttonEventAfter['New_Button']){pageObj.buttonEventAfter['New_Button']=function(result,ctrl,pageObj,proxy,pageid,rowData){window.open("voluntario/view_certificado_voluntario.php?codigo="+result.record["codigo"]+"","senhas","location=1,status=1,scrollbars=1, width=800,height=800");}}
$('a[id=New_Button]').each(function(){if(!$(this).closest('tr.gridRowAdd').length){var newId="New_Button"+"_"+Runner.genId();this.id=newId;var button_New_Button=new Runner.form.Button({id:newId,btnName:"New_Button"});button_New_Button.init({args:[pageObj,proxy,pageid]});}});});