diff options
author | Dominik Dröscher <dhn2@users.sourceforge.net> | 2007-01-11 13:02:33 +0000 |
---|---|---|
committer | Dominik Dröscher <dhn2@users.sourceforge.net> | 2007-01-11 13:02:33 +0000 |
commit | bb5e17f40b5cc1e9a2b4d501d48eb71e03264e85 (patch) | |
tree | 0586e37578ab46feba513d2c8cb23eba2ece497b /phpBB/styles | |
parent | a0ff2c859d5b61b294a278fd56c036055f18fe5f (diff) | |
download | forums-bb5e17f40b5cc1e9a2b4d501d48eb71e03264e85.tar forums-bb5e17f40b5cc1e9a2b4d501d48eb71e03264e85.tar.gz forums-bb5e17f40b5cc1e9a2b4d501d48eb71e03264e85.tar.bz2 forums-bb5e17f40b5cc1e9a2b4d501d48eb71e03264e85.tar.xz forums-bb5e17f40b5cc1e9a2b4d501d48eb71e03264e85.zip |
Some cleanup. Be gone you outdated JS code!
git-svn-id: file:///svn/phpbb/trunk@6882 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles')
-rw-r--r-- | phpBB/styles/subSilver/template/editor.js | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index dfd992974d..2ef2853ed3 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -13,10 +13,7 @@ var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf('msie') != -1) && (clientPC.indexOf('opera') == -1)); -var is_nav = ((clientPC.indexOf('mozilla') != -1) && (clientPC.indexOf('spoofer') == -1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera') == -1) && (clientPC.indexOf('webtv') == -1) && (clientPC.indexOf('hotjava') == -1)); - var is_win = ((clientPC.indexOf('win') != -1) || (clientPC.indexOf('16bit') != -1)); -var is_mac = (clientPC.indexOf('mac') != -1); var baseHeight; window.onload = initInsertions; @@ -30,44 +27,6 @@ function helpline(help) } /** -* Replacement for arrayname.length property -*/ -function getarraysize(thearray) -{ - for (i = 0; i < thearray.length; i++) - { - if (typeof thearray[i] == 'undefined' || thearray[i] == '' || thearray[i] == null) - { - return i; - } - } - - return thearray.length; -} - -/** -* Replacement for arrayname.push(value) not implemented in IE until version 5.5 -* Appends element to the array -*/ -function arraypush(thearray,value) -{ - thearray[getarraysize(thearray)] = value; -} - -/** -* Replacement for arrayname.pop() not implemented in IE until version 5.5 -* Removes and returns the last element of an array -*/ -function arraypop(thearray) -{ - thearraysize = getarraysize(thearray); - retval = thearray[thearraysize - 1]; - delete thearray[thearraysize - 1]; - - return retval; -} - -/** * Fix a bug involving the TextRange object. From * http://www.frostjedi.com/terra/scripts/demo/caretBug.html */ @@ -79,8 +38,7 @@ function initInsertions() { baseHeight = document.selection.createRange().duplicate().boundingHeight; } -} - +} /** * bbstyle |