Commit fdf883bf authored by Arnaud Saval's avatar Arnaud Saval

WEBLAB-759 add an alert when the user click on a source link to explain they...

WEBLAB-759 add an alert when the user click on a source link to explain they will access external websites.

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabServices/Portlets/metadata-portlet@2980 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent b748b8bd
......@@ -44,6 +44,7 @@ portlet.not_sortable_results = Warning, results are not sortable but are display
portlet.meta.configuration = Displayed meta-data
meta.save_config = Save
portlet.no_meta = No meta-data to display
portlet.leave = You are going to leave the WebLab Platform, are you sure you want to access external networks ?
meta.language.en = English
meta.language.fr = French
......
......@@ -44,6 +44,7 @@ portlet.not_sortable_results = Warning, results are not sortable but are display
portlet.meta.configuration = Displayed meta-data
meta.save_config = Save
portlet.no_meta = No meta-data to display
portlet.leave = You are going to leave the WebLab Platform, are you sure you want to access external networks ?
meta.language.en = English
meta.language.fr = French
......
......@@ -51,6 +51,7 @@ meta.save_config = Enregister
thumbnail.image.alt = Aperçu de
portlet.no_meta = Aucune métadonnée à afficher
portlet.leave = Vous allez quitter la Palteforme WebLab, êtes vous sûr de vouloir accéder à des réseaux externes ?
meta.language.en = Anglais
meta.language.fr = Français
......
......@@ -19,6 +19,19 @@
<!-- icons definition -->
<c:url value="/images/" var="baseURL"></c:url>
<script type="text/javascript">
// Leave WebLab
jQuery('.warnUserOnClick').live("click", function() {
jQuery(this).target = "_blank";
var answer = window.confirm('<fmt:message key="portlet.leave" />');
if (answer){
window.open($(this).prop('href'));
}
return false;
});
</script>
<!-- meta-data -->
<div>
<table class="meta_data_table"><tbody>
......@@ -358,7 +371,7 @@
<td>
<c:choose>
<c:when test="${fn:startsWith(resource_desc[rdfProperties['source']][0],'http://')}">
<a class="meta_link" target="_blank" href="${resource_desc[rdfProperties['source']][0]}">
<a class="meta_link warnUserOnClick" target="_blank" href="${resource_desc[rdfProperties['source']][0]}">
${resource_desc[rdfProperties['source']][0]}</a>
</c:when>
<c:otherwise>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment