yllar
2006-12-14 38bf9d3b71067a51ffc9a915ea288929d1fb08e4
program/js/tiny_mce/utils/form_utils.js
@@ -1,7 +1,5 @@
/**
 * $RCSfile: form_utils.js,v $
 * $Revision: 1.11 $
 * $Date: 2006/04/07 15:53:12 $
 * $Id: form_utils.js 43 2006-08-08 16:10:07Z spocke $
 *
 * Various form utilitiy functions.
 *
@@ -9,18 +7,20 @@
 * @copyright Copyright © 2004-2006, 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\';"';