equal
deleted
inserted
replaced
231 setAjaxLoading(); |
231 setAjaxLoading(); |
232 document.getElementById('protbtn_0').style.textDecoration = 'none'; |
232 document.getElementById('protbtn_0').style.textDecoration = 'none'; |
233 document.getElementById('protbtn_1').style.textDecoration = 'none'; |
233 document.getElementById('protbtn_1').style.textDecoration = 'none'; |
234 document.getElementById('protbtn_2').style.textDecoration = 'none'; |
234 document.getElementById('protbtn_2').style.textDecoration = 'none'; |
235 document.getElementById('protbtn_'+l).style.textDecoration = 'underline'; |
235 document.getElementById('protbtn_'+l).style.textDecoration = 'underline'; |
236 ajaxPost(stdAjaxPrefix+'&_mode=protect', 'reason='+escape(r)+'&level='+l, function() { |
236 ajaxPost(stdAjaxPrefix+'&_mode=protect', 'reason='+ajaxEscape(r)+'&level='+l, function() { |
237 if(ajax.readyState == 4) { |
237 if(ajax.readyState == 4) { |
238 unsetAjaxLoading(); |
238 unsetAjaxLoading(); |
239 if(ajax.responseText != 'good') |
239 if(ajax.responseText != 'good') |
240 alert(ajax.responseText); |
240 alert(ajax.responseText); |
241 } |
241 } |
248 if ( KILL_SWITCH ) |
248 if ( KILL_SWITCH ) |
249 return true; |
249 return true; |
250 r = prompt($lang.get('ajax_rename_prompt')); |
250 r = prompt($lang.get('ajax_rename_prompt')); |
251 if(!r || r=='') return; |
251 if(!r || r=='') return; |
252 setAjaxLoading(); |
252 setAjaxLoading(); |
253 ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(r), function() { |
253 ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(r), function() { |
254 if(ajax.readyState == 4) { |
254 if(ajax.readyState == 4) { |
255 unsetAjaxLoading(); |
255 unsetAjaxLoading(); |
256 alert(ajax.responseText); |
256 alert(ajax.responseText); |
257 } |
257 } |
258 }); |
258 }); |
286 if(!c) |
286 if(!c) |
287 { |
287 { |
288 return; |
288 return; |
289 } |
289 } |
290 setAjaxLoading(); |
290 setAjaxLoading(); |
291 ajaxPost(stdAjaxPrefix+'&_mode=deletepage', 'reason=' + escape(reason), function() { |
291 ajaxPost(stdAjaxPrefix+'&_mode=deletepage', 'reason=' + ajaxEscape(reason), function() { |
292 if(ajax.readyState == 4) { |
292 if(ajax.readyState == 4) { |
293 unsetAjaxLoading(); |
293 unsetAjaxLoading(); |
294 alert(ajax.responseText); |
294 alert(ajax.responseText); |
295 window.location.reload(); |
295 window.location.reload(); |
296 } |
296 } |
658 { |
658 { |
659 alert('Theme or style ID is zero length'); |
659 alert('Theme or style ID is zero length'); |
660 return true; |
660 return true; |
661 } |
661 } |
662 |
662 |
663 ajaxPost(stdAjaxPrefix + '&_mode=change_theme', 'theme_id=' + escape(theme_id) + '&style_id=' + escape(style_id), function() |
663 ajaxPost(stdAjaxPrefix + '&_mode=change_theme', 'theme_id=' + ajaxEscape(theme_id) + '&style_id=' + ajaxEscape(style_id), function() |
664 { |
664 { |
665 if ( ajax.readyState == 4 ) |
665 if ( ajax.readyState == 4 ) |
666 { |
666 { |
667 if ( ajax.responseText == 'GOOD' ) |
667 if ( ajax.responseText == 'GOOD' ) |
668 { |
668 { |