includes/clientside/static/ajax.js
changeset 28 dd2edcdc6c03
parent 15 ad5986a53197
child 29 e5484a9e0818
--- a/includes/clientside/static/ajax.js	Wed Jun 27 00:59:42 2007 -0400
+++ b/includes/clientside/static/ajax.js	Wed Jun 27 12:09:02 2007 -0400
@@ -226,12 +226,18 @@
 }
 
 function ajaxDeletePage() {
+  var reason = prompt('Please enter you reason for deleting this page.');
+  if ( !reason || reason == '' )
+  {
+    return false;
+  }
   c = confirm('You are about to DESTROY this page. Do you REALLY want to do this?');
-  if(!c) return;
-  c = confirm('You\'re ABSOLUTELY sure???');
-  if(!c) return;
+  if(!c)
+  {
+    return;
+  }
   setAjaxLoading();
-  ajaxGet(stdAjaxPrefix+'&_mode=deletepage', function() {
+  ajaxPost(stdAjaxPrefix+'&_mode=deletepage', 'reason=' + escape(reason), function() {
     if(ajax.readyState == 4) {
       unsetAjaxLoading();
       alert(ajax.responseText);