From 87e2fddb32da8580f73c5ec0628e9eacfb4e0043 Mon Sep 17 00:00:00 2001 From: svncommit <devs@roundcube.net> Date: Mon, 26 Feb 2007 02:19:44 -0500 Subject: [PATCH] upgrade to TinyMCE v2.1.0 --- program/js/tiny_mce/utils/form_utils.js | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/program/js/tiny_mce/utils/form_utils.js b/program/js/tiny_mce/utils/form_utils.js index f1e9358..ec9dbb3 100644 --- a/program/js/tiny_mce/utils/form_utils.js +++ b/program/js/tiny_mce/utils/form_utils.js @@ -1,26 +1,26 @@ /** - * $RCSfile: form_utils.js,v $ - * $Revision: 1.11 $ - * $Date: 2006/04/07 15:53:12 $ + * $Id: form_utils.js 162 2007-01-03 16:16:52Z spocke $ * * Various form utilitiy functions. * * @author Moxiecode - * @copyright Copyright � 2004-2006, Moxiecode Systems AB, All rights reserved. + * @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved. */ +var themeBaseURL = tinyMCE.baseURL + '/themes/' + tinyMCE.getParam("theme"); + function getColorPickerHTML(id, target_form_element) { - var html = ""; + var h = ""; - html += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; - html += '<img id="' + id + '" src="../../themes/' + tinyMCE.getParam("theme") + '/images/color.gif"'; - html += ' onmouseover="this.className=\'mceButtonOver\'"'; - html += ' onmouseout="this.className=\'mceButtonNormal\'"'; - html += ' onmousedown="this.className=\'mceButtonDown\'"'; - html += ' width="20" height="16" border="0" title="' + tinyMCE.getLang('lang_browse') + '"'; - html += ' class="mceButtonNormal" alt="' + tinyMCE.getLang('lang_browse') + '" /></a>'; + h += '<a id="' + id + '_link" href="javascript:void(0);" onkeydown="pickColor(event,\'' + target_form_element +'\');" onmousedown="pickColor(event,\'' + target_form_element +'\');return false;">'; + h += '<img id="' + id + '" src="' + themeBaseURL + '/images/color.gif"'; + h += ' onmouseover="this.className=\'mceButtonOver\'"'; + h += ' onmouseout="this.className=\'mceButtonNormal\'"'; + h += ' onmousedown="this.className=\'mceButtonDown\'"'; + h += ' width="20" height="16" border="0" title="' + tinyMCE.getLang('lang_browse') + '"'; + h += ' class="mceButtonNormal" alt="' + tinyMCE.getLang('lang_browse') + '" /></a>'; - return html; + return h; } function pickColor(e, target_form_element) { @@ -57,7 +57,7 @@ var html = ""; html += '<a id="' + id + '_link" href="javascript:openBrower(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;">'; - html += '<img id="' + id + '" src="../../themes/' + tinyMCE.getParam("theme") + '/images/browse.gif"'; + html += '<img id="' + id + '" src="' + themeBaseURL + '/images/browse.gif"'; html += ' onmouseover="this.className=\'mceButtonOver\';"'; html += ' onmouseout="this.className=\'mceButtonNormal\';"'; html += ' onmousedown="this.className=\'mceButtonDown\';"'; -- Gitblit v1.9.1