Aleksander Machniak
2012-05-08 e6e0d410ac92818679c03fc9bf5359562df81921
program/js/tiny_mce/plugins/advlink/js/advlink.js
@@ -54,6 +54,13 @@
      document.getElementById('popupurl').style.width = '180px';
   elm = inst.dom.getParent(elm, "A");
   if (elm == null) {
      var prospect = inst.dom.create("p", null, inst.selection.getContent());
      if (prospect.childNodes.length === 1) {
         elm = prospect.firstChild;
      }
   }
   if (elm != null && elm.nodeName == "A")
      action = "update";
@@ -481,7 +488,7 @@
   var html = "";
   html += '<select id="' + elm_id + '" name="' + elm_id + '"';
   html += ' class="mceLinkList" onfoc2us="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
   html += ' class="mceLinkList" onchange="this.form.' + target_form_element + '.value=';
   html += 'this.options[this.selectedIndex].value;';
   if (typeof(onchange_func) != "undefined")
@@ -503,7 +510,7 @@
   var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
   var html = '';
   html += '<select id="' + elm_id + '" name="' + elm_id + '" onf2ocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
   html += '<select id="' + elm_id + '" name="' + elm_id + '" onchange="this.form.' + target_form_element + '.value=';
   html += 'this.options[this.selectedIndex].value;">';
   html += '<option value="_self">' + tinyMCEPopup.getLang('advlink_dlg.target_same') + '</option>';
   html += '<option value="_blank">' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)</option>';