diff options
Diffstat (limited to 'lib/scripts/script.js')
-rw-r--r-- | lib/scripts/script.js | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 20e475190..9b9ca600c 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -472,34 +472,6 @@ function closePopups(){ } /** - * Looks for an element with the ID scroll__here at scrolls to it - */ -function scrollToMarker(){ - var obj = $('scroll__here'); - if(obj) obj.scrollIntoView(); -} - -/** - * Looks for an element with the ID focus__this at sets focus to it - */ -function focusMarker(){ - var obj = $('focus__this'); - if(obj) obj.focus(); -} - -/** - * Remove messages - */ -function cleanMsgArea(){ - var elems = getElementsByClass('(success|info|error)',document,'div'); - if(elems){ - for(var i=0; i<elems.length; i++){ - elems[i].style.display = 'none'; - } - } -} - -/** * disable multiple revisions checkboxes if two are checked * * @author Anika Henke <anika@selfthinker.org> @@ -528,60 +500,6 @@ addInitEvent(function(){ } }); -/** - * Autosubmit quick select forms - * - * When a <select> tag has the class "quickselect", this script will - * automatically submit its parent form when the select value changes. - * It also hides the submit button of the form. - * - * @author Andreas Gohr <andi@splitbrain.org> - */ -addInitEvent(function(){ - var selects = getElementsByClass('quickselect',document,'select'); - for(var i=0; i<selects.length; i++){ - // auto submit on change - addEvent(selects[i],'change',function(e){ - this.form.submit(); - }); - // hide submit buttons - var btns = selects[i].form.getElementsByTagName('input'); - for(var j=0; j<btns.length; j++){ - if(btns[j].type == 'submit'){ - btns[j].style.display = 'none'; - } - } - } -}); - -/** - * Display error for Windows Shares on browsers other than IE - * - * @author Michael Klier <chi@chimeric.de> - */ -function checkWindowsShares() { - if(!LANG['nosmblinks']) return true; - if(document.all != null) return true; - - var elems = getElementsByClass('windows',document,'a'); - if(elems){ - for(var i=0; i<elems.length; i++){ - var share = elems[i]; - addEvent(share,'click',function(){ - alert(LANG['nosmblinks']); - }); - } - } -} - -/** - * Add the event handler for the Windows Shares check - * - * @author Michael Klier <chi@chimeric.de> - */ -addInitEvent(function(){ - checkWindowsShares(); -}); /** * Highlight the section when hovering over the appropriate section edit button |