Index: trunk/extensions/Drafts/Drafts.js |
— | — | @@ -93,11 +93,14 @@ |
94 | 94 | wgAjaxSaveDraft.inprogress = true; |
95 | 95 | |
96 | 96 | // Perform Ajax call |
| 97 | + var old = sajax_request_type; |
| 98 | + sajax_request_type = "POST"; |
97 | 99 | sajax_do_call( |
98 | 100 | "DraftHooks::AjaxSave", |
99 | 101 | [ dtoken, etoken, id, title, section, starttime, edittime, scrolltop, text, summary, minoredit ], |
100 | 102 | wgAjaxSaveDraft.processResult |
101 | 103 | ); |
| 104 | + sajax_request_type = old; |
102 | 105 | |
103 | 106 | // Reallow request if it is not done in 2 seconds |
104 | 107 | wgAjaxSaveDraft.timeoutID = window.setTimeout( function() { |
— | — | @@ -110,8 +113,7 @@ |
111 | 114 | if( request.responseText > -1 ) { |
112 | 115 | wgAjaxSaveDraft.setControlsSaved(); |
113 | 116 | document.editform.wpDraftID.value = request.responseText; |
114 | | - } |
115 | | - else { |
| 117 | + } else { |
116 | 118 | wgAjaxSaveDraft.setControlsError(); |
117 | 119 | } |
118 | 120 | |