changeset 550 | 685e839d934e |
parent 539 | 1beddd693f2d |
child 555 | ac4c6a7f01d8 |
549:6894cfd94dfb | 550:685e839d934e |
---|---|
131 a.appendChild(document.createTextNode('View as HTML...')); |
131 a.appendChild(document.createTextNode('View as HTML...')); |
132 a._resp = response; |
132 a._resp = response; |
133 a.id = 'invalidjson_link'; |
133 a.id = 'invalidjson_link'; |
134 a.onclick = function() |
134 a.onclick = function() |
135 { |
135 { |
136 var mb = new messagebox(MB_YESNO | MB_ICONEXCLAMATION, 'Do you really want to view this response as HTML?', 'If the response was changed during transmission to include malicious code, you may be allowing that malicious code to run by viewing the response as HTML. Only do this if you have reviewed the response text and have found no suspicious code in it.'); |
136 var mb = new MessageBox(MB_YESNO | MB_ICONEXCLAMATION, 'Do you really want to view this response as HTML?', 'If the response was changed during transmission to include malicious code, you may be allowing that malicious code to run by viewing the response as HTML. Only do this if you have reviewed the response text and have found no suspicious code in it.'); |
137 mb.onclick['Yes'] = function() |
137 mb.onclick['Yes'] = function() |
138 { |
138 { |
139 var html = $dynano('invalidjson_link').object._resp; |
139 var html = $dynano('invalidjson_link').object._resp; |
140 var win = window.open('about:blank', 'invalidjson_htmlwin', 'width=550,height=400,status=no,toolbars=no,toolbar=no,address=no,scroll=yes'); |
140 var win = window.open('about:blank', 'invalidjson_htmlwin', 'width=550,height=400,status=no,toolbars=no,toolbar=no,address=no,scroll=yes'); |
141 win.document.write(html); |
141 win.document.write(html); |
349 response = parseJSON(response); |
349 response = parseJSON(response); |
350 if ( response.success ) |
350 if ( response.success ) |
351 { |
351 { |
352 miniPromptDestroy(box, true); |
352 miniPromptDestroy(box, true); |
353 ajaxRenameDoClientTransform(newname); |
353 ajaxRenameDoClientTransform(newname); |
354 new messagebox( MB_OK|MB_ICONINFORMATION, $lang.get('ajax_rename_success_title'), $lang.get('ajax_rename_success_body', { page_name_new: newname }) ); |
354 new MessageBox( MB_OK|MB_ICONINFORMATION, $lang.get('ajax_rename_success_title'), $lang.get('ajax_rename_success_body', { page_name_new: newname }) ); |
355 mb_previously_had_darkener = false; |
355 mb_previously_had_darkener = false; |
356 } |
356 } |
357 else |
357 else |
358 { |
358 { |
359 var errmsg = $lang.get('page_err_' + response.error); |
359 var errmsg = $lang.get('page_err_' + response.error); |
768 inner_html += ' <select id="chtheme_sel_theme" onchange="ajaxGetStyles(this.value);">'; |
768 inner_html += ' <select id="chtheme_sel_theme" onchange="ajaxGetStyles(this.value);">'; |
769 inner_html += ' <option value="_blank" selected="selected">' + $lang.get('ajax_changestyle_select') + '</option>'; |
769 inner_html += ' <option value="_blank" selected="selected">' + $lang.get('ajax_changestyle_select') + '</option>'; |
770 inner_html += ENANO_THEME_LIST; |
770 inner_html += ENANO_THEME_LIST; |
771 inner_html += ' </select>'; |
771 inner_html += ' </select>'; |
772 inner_html += '</label></p>'; |
772 inner_html += '</label></p>'; |
773 var chtheme_mb = new messagebox(MB_OKCANCEL|MB_ICONQUESTION, $lang.get('ajax_changestyle_title'), inner_html); |
773 var chtheme_mb = new MessageBox(MB_OKCANCEL|MB_ICONQUESTION, $lang.get('ajax_changestyle_title'), inner_html); |
774 chtheme_mb.onbeforeclick['OK'] = ajaxChangeStyleComplete; |
774 chtheme_mb.onbeforeclick['OK'] = ajaxChangeStyleComplete; |
775 } |
775 } |
776 |
776 |
777 function ajaxGetStyles(id) |
777 function ajaxGetStyles(id) |
778 { |
778 { |
1331 } |
1331 } |
1332 }; |
1332 }; |
1333 |
1333 |
1334 function aboutKeepAlive() |
1334 function aboutKeepAlive() |
1335 { |
1335 { |
1336 new messagebox(MB_OK|MB_ICONINFORMATION, $lang.get('user_keepalive_info_title'), $lang.get('user_keepalive_info_body')); |
1336 new MessageBox(MB_OK|MB_ICONINFORMATION, $lang.get('user_keepalive_info_title'), $lang.get('user_keepalive_info_body')); |
1337 } |
1337 } |
1338 |
1338 |
1339 function ajaxShowCaptcha(code) |
1339 function ajaxShowCaptcha(code) |
1340 { |
1340 { |
1341 var mydiv = document.createElement('div'); |
1341 var mydiv = document.createElement('div'); |