X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-2.9:/wp-includes/js/tinymce/utils/form_utils.js?ver=327-1235 diff --git a/wp-includes/js/tinymce/utils/form_utils.js b/wp-includes/js/tinymce/utils/form_utils.js index 6d79d0a0..f6cd96a0 100644 --- a/wp-includes/js/tinymce/utils/form_utils.js +++ b/wp-includes/js/tinymce/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 @@ function getColorPickerHTML(id, target_form_element) { var h = ""; h += ''; - h += ''; + h += ' '; return h; } @@ -50,7 +50,7 @@ function getBrowserHTML(id, target_form_element, type, prefix) { html = ""; html += ''; - html += ''; + html += ' '; return html; } @@ -92,7 +92,7 @@ function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { 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;