]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/themes/advanced/js/link.js
Wordpress 2.9-scripts
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / themes / advanced / js / link.js
index f46137c5939a51491d3196e6a332d87827b3a9ca..73b9f597e21edd0af2e17810947ab3ad3185370c 100644 (file)
@@ -63,8 +63,8 @@ var LinkDialog = {
                                        ed.dom.setAttribs(e, {
                                                href : f.href.value,
                                                title : f.linktitle.value,
                                        ed.dom.setAttribs(e, {
                                                href : f.href.value,
                                                title : f.linktitle.value,
-                                               target : f.target_list ? f.target_list.options[f.target_list.selectedIndex].value : null,
-                                               'class' : f.class_list ? f.class_list.options[f.class_list.selectedIndex].value : null
+                                               target : f.target_list ? getSelectValue(f, "target_list") : null,
+                                               'class' : f.class_list ? getSelectValue(f, "class_list") : null
                                        });
                                }
                        });
                                        });
                                }
                        });
@@ -72,8 +72,8 @@ var LinkDialog = {
                        ed.dom.setAttribs(e, {
                                href : f.href.value,
                                title : f.linktitle.value,
                        ed.dom.setAttribs(e, {
                                href : f.href.value,
                                title : f.linktitle.value,
-                               target : f.target_list ? f.target_list.options[f.target_list.selectedIndex].value : null,
-                               'class' : f.class_list ? f.class_list.options[f.class_list.selectedIndex].value : null
+                               target : f.target_list ? getSelectValue(f, "target_list") : null,
+                               'class' : f.class_list ? getSelectValue(f, "class_list") : null
                        });
                }
 
                        });
                }