diff options
| author | hukl <contact@smyck.org> | 2009-09-09 12:07:57 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-09 12:07:57 +0200 |
| commit | a6292dd0fecd4482fe863ed849d126b5281b1a8a (patch) | |
| tree | 7c4c32e1a3448c5d1995a236ed01c731018da13d /public/javascripts/tiny_mce/utils/form_utils.js | |
| parent | 83fe1b1abd7d7bb85679be3f1341e5c88db0ae83 (diff) | |
huge tiny_mce update - now using the tiny_mce jquery build which allows tiny_mce to be initialized via jquery - great!
Diffstat (limited to 'public/javascripts/tiny_mce/utils/form_utils.js')
| -rw-r--r--[-rwxr-xr-x] | public/javascripts/tiny_mce/utils/form_utils.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/public/javascripts/tiny_mce/utils/form_utils.js b/public/javascripts/tiny_mce/utils/form_utils.js index c1f1409..9bc2bad 100755..100644 --- a/public/javascripts/tiny_mce/utils/form_utils.js +++ b/public/javascripts/tiny_mce/utils/form_utils.js | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /** | 1 | /** |
| 2 | * $Id: form_utils.js 673 2008-03-06 13:26:20Z spocke $ | 2 | * $Id: form_utils.js 1184 2009-08-11 11:47:27Z spocke $ |
| 3 | * | 3 | * |
| 4 | * Various form utilitiy functions. | 4 | * Various form utilitiy functions. |
| 5 | * | 5 | * |
| @@ -13,7 +13,7 @@ function getColorPickerHTML(id, target_form_element) { | |||
| 13 | var h = ""; | 13 | var h = ""; |
| 14 | 14 | ||
| 15 | h += '<a id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">'; | 15 | h += '<a id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">'; |
| 16 | h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"></span></a>'; | 16 | h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>'; |
| 17 | 17 | ||
| 18 | return h; | 18 | return h; |
| 19 | } | 19 | } |
| @@ -50,7 +50,7 @@ function getBrowserHTML(id, target_form_element, type, prefix) { | |||
| 50 | 50 | ||
| 51 | html = ""; | 51 | html = ""; |
| 52 | html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">'; | 52 | html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">'; |
| 53 | html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"></span></a>'; | 53 | html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>'; |
| 54 | 54 | ||
| 55 | return html; | 55 | return html; |
| 56 | } | 56 | } |
| @@ -92,7 +92,7 @@ function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { | |||
| 92 | function getSelectValue(form_obj, field_name) { | 92 | function getSelectValue(form_obj, field_name) { |
| 93 | var elm = form_obj.elements[field_name]; | 93 | var elm = form_obj.elements[field_name]; |
| 94 | 94 | ||
| 95 | if (elm == null || elm.options == null) | 95 | if (elm == null || elm.options == null || elm.selectedIndex === -1) |
| 96 | return ""; | 96 | return ""; |
| 97 | 97 | ||
| 98 | return elm.options[elm.selectedIndex].value; | 98 | return elm.options[elm.selectedIndex].value; |
