alecpl
2010-02-26 72b140dc9804f159c2bee65832bbe105db329c5d
program/js/tiny_mce/utils/form_utils.js
@@ -1,5 +1,5 @@
/**
 * $Id: form_utils.js 673 2008-03-06 13:26:20Z spocke $
 * $Id: form_utils.js 1184 2009-08-11 11:47:27Z spocke $
 *
 * Various form utilitiy functions.
 *
@@ -13,7 +13,7 @@
   var h = "";
   h += '<a id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
   h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"></span></a>';
   h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;</span></a>';
   return h;
}
@@ -50,7 +50,7 @@
   html = "";
   html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
   html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"></span></a>';
   html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;</span></a>';
   return html;
}
@@ -92,7 +92,7 @@
function getSelectValue(form_obj, field_name) {
   var elm = form_obj.elements[field_name];
   if (elm == null || elm.options == null)
   if (elm == null || elm.options == null || elm.selectedIndex === -1)
      return "";
   return elm.options[elm.selectedIndex].value;