| | |
| | | /**
|
| | | * $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.
|
| | | *
|
| | |
| | | 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') + '"> </span></a>';
|
| | |
|
| | | return h;
|
| | | }
|
| | |
| | |
|
| | | 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') + '"> </span></a>';
|
| | |
|
| | | return html;
|
| | | }
|
| | |
| | | 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;
|