Every line of 'how to use confirm box in php' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
106 function doConfirmDelete(url, message, title, id, boxTitle) 107 { 108 if(confirm(message + " (" + title + ")")) 109 { 110 var divToHide; 111 if (opener) divToHide = opener.$(id); 112 else divToHide = $(id); 113 if (divToHide) { 114 divToHide.hide(); 115 } 116 Modalbox.show(url,{title: boxTitle, width: 600, afterHide: function() { 117 if ($("simple_search_pnl") && $("simple_search_pnl").visible()) { 118 runSimpleSearch(); 119 120 } else if ($("advanced_search_pnl") && $("advanced_search_pnl").visible()) { 121 runAdvancedSearch(); 122 123 // Used in my metadata form 124 } else if ($("metadata_search_pnl") && $("metadata_search_pnl").visible()) { 125 location.replace(getGNServiceURL('main.search') + "?hitsPerPage=10&editable=true"); 126 127 } else { 128 location.replace(getGNServiceURL('home')); 129 } 130 131 runRssSearch(); 132 }}); 133 return true; 134 } 135 return false; 136 }