Mercurial > public > sg101
diff media/js/tiny_mce/utils/form_utils.js @ 183:149c3567fec1
Updated to TinyMCE version 3.3.2. This is for #57.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Mar 2010 21:47:48 +0000 |
parents | a5b4c5ce0658 |
children |
line wrap: on
line diff
--- a/media/js/tiny_mce/utils/form_utils.js Sun Mar 28 21:41:11 2010 +0000 +++ b/media/js/tiny_mce/utils/form_utils.js Sun Mar 28 21:47:48 2010 +0000 @@ -1,10 +1,11 @@ /** - * $Id: form_utils.js 996 2009-02-06 17:32:20Z spocke $ + * form_utils.js * - * Various form utilitiy functions. + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. * - * @author Moxiecode - * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing */ var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme")); @@ -92,7 +93,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;