Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/jquery/fdd2div-modified.js')
-rw-r--r--libs/jquery/fdd2div-modified.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/jquery/fdd2div-modified.js b/libs/jquery/fdd2div-modified.js
index a1e4629a0e..2f04934b00 100644
--- a/libs/jquery/fdd2div-modified.js
+++ b/libs/jquery/fdd2div-modified.js
@@ -95,7 +95,11 @@
$('body').append("<div style=\"position:absolute\">"+newForm+"</div>");
child_options+="<li><a href='"+FormAction+"' onclick=\"document.form"+unique_id+"_"+n+".submit();return false;\">"+i.firstChild.nodeValue+"</a></li>\n";
} else {
- child_options+="<li><a href='"+FormAction+SelectName+"="+OptionValue+"'>"+i.firstChild.nodeValue+"</a></li>\n";
+ if($(i).attr('href')) {
+ child_options+="<li><b><a target='_blank' href='"+$(i).attr('href')+"'>"+i.firstChild.nodeValue+"</a></b></li>\n";
+ } else {
+ child_options+="<li><a href='"+FormAction+SelectName+"="+OptionValue+"'>"+i.firstChild.nodeValue+"</a></li>\n";
+ }
}
}
});