From 0304996233a4dc8e9df6baea3c8ef4210a22b6dc Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 27 Mar 2006 10:57:31 +0000 Subject: [PATCH] backport --- docs/NEWS | 4 ++++ include/functions_entries_admin.inc.php | 22 +++++++++++----------- lang/UTF-8/serendipity_lang_tr.inc.php | 2 +- lang/serendipity_lang_tr.inc.php | 2 +- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 893fa99..a27a6dc 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.0-beta2 (March 13th, 2006) ------------------------------------------------------------------------ + * Fix WYSIWYG javascript referencing so that plugins can access their + objects (like emoticonchooser). Also replace with and + with . (Jay Bertrandt) + * Fixed chief-editor not being able to create editors (garvinhicking) * Added turkish language by Ahmet Usal diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index 0281d42..4a15052 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -197,7 +197,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr /* Hack to make sure that when the single dropdown is shown, don't have multiple selections */ last = 0; - + for (i=0; i < el.options.length; i++) { if (el.options[i].selected == true) { selected++; @@ -221,7 +221,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr break; } } - + el.selectedIndex = null; if (last > 0) { el.selectedIndex = last; @@ -288,7 +288,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr ?> return true; } - + selector_toggle['categoryselector'] = ''; addLoadEvent(showItem); @@ -305,8 +305,8 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr if (!$serendipity['wysiwyg'] && eregi($serendipity['EditorBrowsers'], $_SERVER['HTTP_USER_AGENT']) ) { ?>