From 18d014c7656717fe09aba0cafe2967eae7cea421 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 3 Nov 2007 20:31:05 +0000 Subject: further fixes - fix infinite loop on checking ban for those not having ever visited the page (or removed all session cookies) - avatar width/height switched in language files - fix windows switching to background on IE7 (smlies window for example) git-svn-id: file:///svn/phpbb/trunk@8224 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/styles/prosilver/template/editor.js | 9 +++++++-- phpBB/styles/prosilver/template/ucp_pm_options.html | 2 +- phpBB/styles/subsilver2/template/editor.js | 6 +++++- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'phpBB/styles') diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index 61747f7e56..5631ab67d1 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -34,7 +34,7 @@ function initInsertions() { var doc; - if( document.forms[form_name]) + if (document.forms[form_name]) { doc = document; } @@ -44,11 +44,16 @@ function initInsertions() } var textarea = doc.forms[form_name].elements[text_name]; + if (is_ie && typeof(baseHeight) != 'number') { textarea.focus(); baseHeight = doc.selection.createRange().duplicate().boundingHeight; - // document.body.focus(); + + if (!document.forms[form_name]) + { + document.body.focus(); + } } } diff --git a/phpBB/styles/prosilver/template/ucp_pm_options.html b/phpBB/styles/prosilver/template/ucp_pm_options.html index 3fe24f04ee..db5781febf 100644 --- a/phpBB/styles/prosilver/template/ucp_pm_options.html +++ b/phpBB/styles/prosilver/template/ucp_pm_options.html @@ -14,7 +14,7 @@
    -
  1. {L_IF} {rule.CHECK} {rule.RULE} {rule.STRING} | {rule.ACTION}: {rule.FOLDER}
  2. +
  3. {L_IF} {rule.CHECK} {rule.RULE} {rule.STRING} | {rule.ACTION}: {rule.FOLDER}
  4. {L_NO_RULES_DEFINED}
  5. diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js index 72de8ef8ff..53b8b6222f 100644 --- a/phpBB/styles/subsilver2/template/editor.js +++ b/phpBB/styles/subsilver2/template/editor.js @@ -48,7 +48,11 @@ function initInsertions() { textarea.focus(); baseHeight = doc.selection.createRange().duplicate().boundingHeight; - // document.body.focus(); + + if (!document.forms[form_name]) + { + document.body.focus(); + } } } -- cgit v1.2.1