# HG changeset patch # User Dan # Date 1184032887 14400 # Node ID b354deeaa4c4b0a6e40c6238fe3e51ef7f7aa4a5 # Parent eb8eacb056d1729e573c0e2e1034aae5f5ff0129 Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions diff -r eb8eacb056d1 -r b354deeaa4c4 includes/clientside/static/ajax.js --- a/includes/clientside/static/ajax.js Mon Jul 09 15:30:22 2007 -0400 +++ b/includes/clientside/static/ajax.js Mon Jul 09 22:01:27 2007 -0400 @@ -51,7 +51,11 @@ // Page editor -function ajaxEditor() { +function ajaxEditor() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); ajaxGet(stdAjaxPrefix+'&_mode=getsource', function() { if(ajax.readyState == 4) { @@ -106,7 +110,11 @@ $('switcher').object.innerHTML = 'wikitext editor | graphical editor'; } -function ajaxViewSource() { +function ajaxViewSource() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); ajaxGet(stdAjaxPrefix+'&_mode=getsource', function() { if(ajax.readyState == 4) { @@ -135,6 +143,9 @@ function ajaxShowPreview() { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; goBusy('Loading preview...'); var text = ajaxEscape($('ajaxEditArea').getContent()); if(document.mdgAjaxEditor.minor.checked) minor='&minor'; @@ -148,7 +159,11 @@ }); } -function ajaxSavePage() { +function ajaxSavePage() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; goBusy('Saving page...'); var text = ajaxEscape($('ajaxEditArea').getContent()); if(document.mdgAjaxEditor.minor.checked) minor='&minor'; @@ -164,13 +179,21 @@ }); } -function ajaxDiscard() { +function ajaxDiscard() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; c = confirm('Do you really want to discard your changes?'); if(!c) return; ajaxReset(); } -function ajaxReset() { +function ajaxReset() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; enableUnload(); setAjaxLoading(); ajaxGet(stdAjaxPrefix+'&_mode=getpage&noheaders', function() { @@ -187,6 +210,9 @@ // Miscellaneous AJAX applets function ajaxProtect(l) { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; if(shift) { r = 'NO_REASON'; } else { @@ -207,7 +233,11 @@ }); } -function ajaxRename() { +function ajaxRename() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; r = prompt('What title should this page be renamed to?\nNote: This does not and will never change the URL of this page, that must be done from the admin panel.'); if(!r || r=='') return; setAjaxLoading(); @@ -219,7 +249,11 @@ }); } -function ajaxMakePage() { +function ajaxMakePage() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); ajaxPost(ENANO_SPECIAL_CREATEPAGE, ENANO_CREATEPAGE_PARAMS, function() { if(ajax.readyState == 4) { @@ -229,7 +263,11 @@ }); } -function ajaxDeletePage() { +function ajaxDeletePage() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; var reason = prompt('Please enter your reason for deleting this page.'); if ( !reason || reason == '' ) { @@ -250,7 +288,11 @@ }); } -function ajaxDelVote() { +function ajaxDelVote() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; c = confirm('Are you sure that you want to vote that this page be deleted?'); if(!c) return; setAjaxLoading(); @@ -262,7 +304,11 @@ }); } -function ajaxResetDelVotes() { +function ajaxResetDelVotes() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; c = confirm('This will reset the number of votes against this page to zero. Do you really want to do this?'); if(!c) return; setAjaxLoading(); @@ -281,6 +327,9 @@ } function ajaxSetWikiMode(val) { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); document.getElementById('wikibtn_0').style.textDecoration = 'none'; document.getElementById('wikibtn_1').style.textDecoration = 'none'; @@ -301,7 +350,11 @@ // This was not easy to write, I hope enjoy it, and dang I swear I'm gonna // find someone to work on just the Javascript part of Enano... -function ajaxCatEdit() { +function ajaxCatEdit() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); ajaxGet(stdAjaxPrefix+'&_mode=catedit', function() { if(ajax.readyState == 4) { @@ -314,6 +367,9 @@ function ajaxCatSave() { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; if(!catlist) { alert('Var catlist has no properties'); @@ -340,7 +396,11 @@ // History stuff -function ajaxHistory() { +function ajaxHistory() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); ajaxGet(stdAjaxPrefix+'&_mode=histlist', function() { if(ajax.readyState == 4) { @@ -355,6 +415,9 @@ } function ajaxHistView(oldid, tit) { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; if(!tit) tit=title; setAjaxLoading(); ajaxGet(append_sid(scriptPath+'/ajax.php?title='+tit+'&_mode=getpage&oldid='+oldid), function() { @@ -367,6 +430,9 @@ } function ajaxRollback(id) { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; setAjaxLoading(); ajaxGet(stdAjaxPrefix+'&_mode=rollback&id='+id, function() { if(ajax.readyState == 4) { @@ -376,7 +442,11 @@ }); } -function ajaxClearLogs() { +function ajaxClearLogs() +{ + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; c = confirm('You are about to DESTROY all log entries for this page. As opposed to (example) deleting this page, this action is completely IRREVERSIBLE and should not be used except in dire circumstances. Do you REALLY want to do this?'); if(!c) return; c = confirm('You\'re ABSOLUTELY sure???'); @@ -450,6 +520,9 @@ function ajaxHistDiff() { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; var id1=false; var id2=false; for ( i = 0; i < arrDiff1Buttons.length; i++ ) @@ -476,6 +549,9 @@ function ajaxChangeStyle() { + // IE <6 pseudo-compatibility + if ( KILL_SWITCH ) + return true; var inner_html = ''; inner_html += '

Other changes:

'; diff -r eb8eacb056d1 -r b354deeaa4c4 includes/sessions.php --- a/includes/sessions.php Mon Jul 09 15:30:22 2007 -0400 +++ b/includes/sessions.php Mon Jul 09 22:01:27 2007 -0400 @@ -2385,6 +2385,7 @@ { if(testpassed) { + var frm = document.forms.'.$form_name.'; pass = frm.'.$pw_field.'.value; chal = frm.'.$challenge.'.value; challenge = hex_md5(pass + chal) + chal; diff -r eb8eacb056d1 -r b354deeaa4c4 includes/template.php --- a/includes/template.php Mon Jul 09 15:30:22 2007 -0400 +++ b/includes/template.php Mon Jul 09 22:01:27 2007 -0400 @@ -42,7 +42,7 @@ $this->plugin_blocks = Array(); $this->theme_loaded = false; - $fading_button = ' + $fading_button = ' Powered by Enano CMS @@ -247,7 +247,7 @@ $parser = $this->makeParserText($btn_selected); $parser->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxReset()); return false;" title="View the page contents, all of the page contents, and nothing but the page contents (alt-a)" accesskey="a"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxReset()); return false; }" title="View the page contents, all of the page contents, and nothing but the page contents (alt-a)" accesskey="a"', 'PARENTFLAGS' => 'id="mdgToolbar_article"', 'HREF' => makeUrl($paths->page, null, true), 'TEXT' => $this->namespace_string @@ -291,7 +291,7 @@ } $button->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxComments()); return false;" title="View the comments that other users have posted about this page (alt-c)" accesskey="c"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxComments()); return false; }" title="View the comments that other users have posted about this page (alt-c)" accesskey="c"', 'PARENTFLAGS' => 'id="mdgToolbar_discussion"', 'HREF' => makeUrl($paths->page, 'do=comments', true), 'TEXT' => 'discussion ('.$n.')', @@ -303,7 +303,7 @@ if($session->get_permissions('read') && ($paths->namespace != 'Special' && $paths->namespace != 'Admin') && ( $session->get_permissions('edit_page') && ( ( $paths->page_protected && $session->get_permissions('even_when_protected') ) || !$paths->page_protected ) ) ) { $button->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxEditor()); return false;" title="Edit the contents of this page (alt-e)" accesskey="e"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxEditor()); return false; }" title="Edit the contents of this page (alt-e)" accesskey="e"', 'PARENTFLAGS' => 'id="mdgToolbar_edit"', 'HREF' => makeUrl($paths->page, 'do=edit', true), 'TEXT' => 'edit this page' @@ -314,7 +314,7 @@ else if($session->get_permissions('view_source') && ( !$session->get_permissions('edit_page') || !$session->get_permissions('even_when_protected') && $paths->page_protected ) && $paths->namespace != 'Special' && $paths->namespace != 'Admin') { $button->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxViewSource()); return false;" title="View the source code (wiki markup) that this page uses (alt-e)" accesskey="e"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxViewSource()); return false; }" title="View the source code (wiki markup) that this page uses (alt-e)" accesskey="e"', 'PARENTFLAGS' => 'id="mdgToolbar_edit"', 'HREF' => makeUrl($paths->page, 'do=viewsource', true), 'TEXT' => 'view source' @@ -325,7 +325,7 @@ if ( $session->get_permissions('read') /* && $paths->wiki_mode */ && $paths->page_exists && $paths->namespace != 'Special' && $paths->namespace != 'Admin' && $session->get_permissions('history_view') ) { $button->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxHistory()); return false;" title="View a log of actions taken on this page (alt-h)" accesskey="h"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxHistory()); return false; }" title="View a log of actions taken on this page (alt-h)" accesskey="h"', 'PARENTFLAGS' => 'id="mdgToolbar_history"', 'HREF' => makeUrl($paths->page, 'do=history', true), 'TEXT' => 'history' @@ -340,7 +340,7 @@ if ( $session->get_permissions('read') && $paths->page_exists && ( $session->get_permissions('rename') && ( $paths->page_protected && $session->get_permissions('even_when_protected') || !$paths->page_protected ) ) && $paths->namespace != 'Special' && $paths->namespace != 'Admin' ) { $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxRename()); return false;" title="Change the display name of this page (alt-r)" accesskey="r"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxRename()); return false; }" title="Change the display name of this page (alt-r)" accesskey="r"', 'HREF' => makeUrl($paths->page, 'do=rename', true), 'TEXT' => 'rename', )); @@ -351,7 +351,7 @@ if ( $paths->wiki_mode && $session->get_permissions('vote_delete') && $paths->page_exists && $paths->namespace != 'Special' && $paths->namespace != 'Admin') { $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxDelVote()); return false;" title="Vote to have this page deleted (alt-d)" accesskey="d"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxDelVote()); return false; }" title="Vote to have this page deleted (alt-d)" accesskey="d"', 'HREF' => makeUrl($paths->page, 'do=delvote', true), 'TEXT' => 'vote to delete this page', )); @@ -362,7 +362,7 @@ if ( $session->get_permissions('read') && $paths->wiki_mode && $paths->page_exists && $paths->namespace != 'Special' && $paths->namespace != 'Admin' && $session->get_permissions('vote_reset') && $paths->cpage['delvotes'] > 0) { $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxResetDelVotes()); return false;" title="Vote to have this page deleted (alt-y)" accesskey="y"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxResetDelVotes()); return false; }" title="Vote to have this page deleted (alt-y)" accesskey="y"', 'HREF' => makeUrl($paths->page, 'do=resetvotes', true), 'TEXT' => 'reset deletion votes', )); @@ -394,7 +394,7 @@ $ctmp=' style="text-decoration: underline;"'; } $menubtn->assign_vars(array( - 'FLAGS' => 'accesskey="i" onclick="ajaxProtect(1); return false;" id="protbtn_1" title="Prevents all non-administrators from editing this page. [alt-i]"'.$ctmp, + 'FLAGS' => 'accesskey="i" onclick="if ( !KILL_SWITCH ) { ajaxProtect(1); return false; }" id="protbtn_1" title="Prevents all non-administrators from editing this page. [alt-i]"'.$ctmp, 'HREF' => makeUrl($paths->page, 'do=protect&level=1', true), 'TEXT' => 'on' )); @@ -406,7 +406,7 @@ $ctmp=' style="text-decoration: underline;"'; } $menubtn->assign_vars(array( - 'FLAGS' => 'accesskey="o" onclick="ajaxProtect(0); return false;" id="protbtn_0" title="Allows everyone to edit this page. [alt-o]"'.$ctmp, + 'FLAGS' => 'accesskey="o" onclick="if ( !KILL_SWITCH ) { ajaxProtect(0); return false; }" id="protbtn_0" title="Allows everyone to edit this page. [alt-o]"'.$ctmp, 'HREF' => makeUrl($paths->page, 'do=protect&level=0', true), 'TEXT' => 'off' )); @@ -418,7 +418,7 @@ $ctmp = ' style="text-decoration: underline;"'; } $menubtn->assign_vars(array( - 'FLAGS' => 'accesskey="p" onclick="ajaxProtect(2); return false;" id="protbtn_2" title="Allows only users who have been registered for 4 days to edit this page. [alt-p]"'.$ctmp, + 'FLAGS' => 'accesskey="p" onclick="if ( !KILL_SWITCH ) { ajaxProtect(2); return false; }" id="protbtn_2" title="Allows only users who have been registered for 4 days to edit this page. [alt-p]"'.$ctmp, 'HREF' => makeUrl($paths->page, 'do=protect&level=2', true), 'TEXT' => 'semi' )); @@ -449,7 +449,7 @@ $ctmp = ' style="text-decoration: underline;"'; } $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="ajaxSetWikiMode(1); return false;" id="wikibtn_1" title="Forces wiki functions to be allowed on this page."'.$ctmp, + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(1); return false; }" id="wikibtn_1" title="Forces wiki functions to be allowed on this page."'.$ctmp, 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=1', true), 'TEXT' => 'on' )); @@ -462,7 +462,7 @@ $ctmp=' style="text-decoration: underline;"'; } $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="ajaxSetWikiMode(0); return false;" id="wikibtn_0" title="Forces wiki functions to be disabled on this page."'.$ctmp, + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(0); return false; }" id="wikibtn_0" title="Forces wiki functions to be disabled on this page."'.$ctmp, 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=0', true), 'TEXT' => 'off' )); @@ -475,7 +475,7 @@ $ctmp=' style="text-decoration: underline;"'; } $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="ajaxSetWikiMode(2); return false;" id="wikibtn_2" title="Causes this page to use the global wiki mode setting (default)"'.$ctmp, + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(2); return false; }" id="wikibtn_2" title="Causes this page to use the global wiki mode setting (default)"'.$ctmp, 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=2', true), 'TEXT' => 'global' )); @@ -496,7 +496,7 @@ if ( $session->get_permissions('read') && $session->get_permissions('clear_logs') && $paths->namespace != 'Special' && $paths->namespace != 'Admin' ) { $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxClearLogs()); return false;" title="Remove all edit and action logs for this page from the database. IRREVERSIBLE! (alt-l)" accesskey="l"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxClearLogs()); return false; }" title="Remove all edit and action logs for this page from the database. IRREVERSIBLE! (alt-l)" accesskey="l"', 'HREF' => makeUrl($paths->page, 'do=flushlogs', true), 'TEXT' => 'clear page logs', )); @@ -517,7 +517,7 @@ } $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxDeletePage()); return false;" title="Delete this page. This is always reversible unless the logs are cleared. (alt-k)" accesskey="k"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxDeletePage()); return false; }" title="Delete this page. This is always reversible unless the logs are cleared. (alt-k)" accesskey="k"', 'HREF' => makeUrl($paths->page, 'do=deletepage', true), 'TEXT' => $s, )); @@ -549,7 +549,7 @@ $t0 = $label->run(); $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxSetPassword()); return false;" title="Require a password in order for this page to be viewed"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxSetPassword()); return false; }" title="Require a password in order for this page to be viewed"', 'HREF' => '#', 'TEXT' => 'set', )); @@ -562,7 +562,7 @@ if($session->get_permissions('edit_acl') || $session->user_level >= USER_LEVEL_ADMIN) { $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="return ajaxOpenACLManager();" title="Manage who can do what with this page (alt-m)" accesskey="m"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { return ajaxOpenACLManager(); }" title="Manage who can do what with this page (alt-m)" accesskey="m"', 'HREF' => makeUrl($paths->page, 'do=aclmanager', true), 'TEXT' => 'manage page access', )); @@ -573,7 +573,7 @@ if ( $session->user_level >= USER_LEVEL_ADMIN && $paths->page_exists && $paths->namespace != 'Special' && $paths->namespace != 'Admin' ) { $menubtn->assign_vars(array( - 'FLAGS' => 'onclick="void(ajaxAdminPage()); return false;" title="Administrative options for this page" accesskey="g"', + 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxAdminPage()); return false; }" title="Administrative options for this page" accesskey="g"', 'HREF' => makeUrlNS('Special', 'Administration', 'module='.$paths->nslist['Admin'].'PageManager', true), 'TEXT' => 'administrative options', )); @@ -583,7 +583,7 @@ if ( strlen($this->toolbar_menu) > 0 ) { $button->assign_vars(array( - 'FLAGS' => 'id="mdgToolbar_moreoptions" onclick="return false;" title="Additional options for working with this page"', + 'FLAGS' => 'id="mdgToolbar_moreoptions" onclick="if ( !KILL_SWITCH ) { return false; }" title="Additional options for working with this page"', 'PARENTFLAGS' => '', 'HREF' => makeUrl($paths->page, 'do=moreoptions', true), 'TEXT' => 'more options' @@ -643,7 +643,7 @@ $parser->assign_vars(Array( 'HREF'=>makeUrlNS('Special', 'Logout'), - 'FLAGS'=>'onclick="mb_logout(); return false;"', + 'FLAGS'=>'onclick="if ( !KILL_SWITCH ) { mb_logout(); return false; }"', 'TEXT'=>'Log out', )); @@ -651,7 +651,7 @@ $parser->assign_vars(Array( 'HREF'=>makeUrlNS('Special', 'Login/' . $paths->page), - 'FLAGS'=>'onclick="ajaxStartLogin(); return false;"', + 'FLAGS'=>'onclick="if ( !KILL_SWITCH ) { ajaxStartLogin(); return false; }"', 'TEXT'=>'Log in', )); @@ -659,7 +659,7 @@ $parser->assign_vars(Array( 'HREF'=>makeUrlNS('Special', 'ChangeStyle/'.$paths->page), - 'FLAGS'=>'onclick="ajaxChangeStyle(); return false;"', + 'FLAGS'=>'onclick="if ( !KILL_SWITCH ) { ajaxChangeStyle(); return false; }"', 'TEXT'=>'Change theme', )); @@ -1235,7 +1235,7 @@ $randomid = md5(microtime() . mt_rand()); $html = ''; $html .= ''; - $html .= '
text editor  |  graphical editor
'; + $html .= '
text editor  |  graphical editor
'; $html .= ' @@ -2459,6 +2472,12 @@ } ?> + diff -r eb8eacb056d1 -r b354deeaa4c4 plugins/SpecialUserFuncs.php --- a/plugins/SpecialUserFuncs.php Mon Jul 09 15:30:22 2007 -0400 +++ b/plugins/SpecialUserFuncs.php Mon Jul 09 22:01:27 2007 -0400 @@ -853,7 +853,9 @@ footer(); diff -r eb8eacb056d1 -r b354deeaa4c4 themes/oxygen/header.tpl --- a/themes/oxygen/header.tpl Mon Jul 09 15:30:22 2007 -0400 +++ b/themes/oxygen/header.tpl Mon Jul 09 22:01:27 2007 -0400 @@ -22,12 +22,18 @@ elem.style.display = 'block'; counter.style.display = 'none'; elem.parentNode.style.width = '156px'; - createCookie(side+'_sidebar', 'open', 365); + if ( !KILL_SWITCH ) + { + createCookie(side+'_sidebar', 'open', 365); + } } else { elem.style.display = 'none'; counter.style.display = 'block'; elem.parentNode.style.width = '25px'; - createCookie(side+'_sidebar', 'collapsed', 365); + if ( !KILL_SWITCH ) + { + createCookie(side+'_sidebar', 'collapsed', 365); + } } } @@ -43,16 +49,25 @@ } */ - addOnloadHook(function() { - if(typeof readCookie == 'function') - { - if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); - if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); - } - }); + if ( typeof(KILL_SWITCH) != 'undefined' ) + { + if ( !KILL_SWITCH ) + { + var oxygenSidebarSetup = function() { + if(typeof readCookie == 'function') + { + if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); + if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); + } + }; + addOnloadHook(oxygenSidebarSetup); + } + } function ajaxRenameInline() { + if ( KILL_SWITCH ) + return false; // This trick is _so_ vBulletin... elem = document.getElementById('h2PageName'); if(!elem) return;