]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/js/tiny_mce/themes/advanced/js/link.js
Imported Upstream version 0.5
[roundcube.git] / program / js / tiny_mce / themes / advanced / js / link.js
index 21aae6cbf88d18f497fe093e95422656365d7a15..f67a5bc82810d5cd57d3b6a05fdf4bee9e199b2c 100644 (file)
@@ -63,8 +63,8 @@ var LinkDialog = {
                                        ed.dom.setAttribs(e, {\r
                                                href : f.href.value,\r
                                                title : f.linktitle.value,\r
-                                               target : f.target_list ? f.target_list.options[f.target_list.selectedIndex].value : null,\r
-                                               'class' : f.class_list ? f.class_list.options[f.class_list.selectedIndex].value : null\r
+                                               target : f.target_list ? getSelectValue(f, "target_list") : null,\r
+                                               'class' : f.class_list ? getSelectValue(f, "class_list") : null\r
                                        });\r
                                }\r
                        });\r
@@ -72,8 +72,8 @@ var LinkDialog = {
                        ed.dom.setAttribs(e, {\r
                                href : f.href.value,\r
                                title : f.linktitle.value,\r
-                               target : f.target_list ? f.target_list.options[f.target_list.selectedIndex].value : null,\r
-                               'class' : f.class_list ? f.class_list.options[f.class_list.selectedIndex].value : null\r
+                               target : f.target_list ? getSelectValue(f, "target_list") : null,\r
+                               'class' : f.class_list ? getSelectValue(f, "class_list") : null\r
                        });\r
                }\r
 \r