Commit a8601a0e authored by Clément OUDOT's avatar Clément OUDOT
Browse files

portalOpenLinkInNewWindow parameter

parent c667608d
......@@ -185,6 +185,7 @@ if ( $portal->process() ) {
$template->param( DISPLAY_TAB => $menu->displayTab );
$template->param( LOGOUT_URL => "$ENV{SCRIPT_NAME}?logout=1" );
$template->param( REQUIRE_OLDPASSWORD => $portal->{portalRequireOldPassword} );
$template->param( NEWWINDOW => $portal->{portalOpenLinkInNewWindow} );
if ( $menu->displayModule("appslist") ) {
$template->param( APPSLIST_MENU => $menu->appslistMenu );
$template->param( APPSLIST_DESC => $menu->appslistDescription );
......@@ -226,6 +227,7 @@ else {
$template->param( AUTH_URL => $portal->get_url );
$template->param( LOGIN => $portal->get_user );
$template->param( AUTOCOMPLETE => $portal->{portalAutocomplete} );
$template->param( NEWWINDOW => $portal->{portalOpenLinkInNewWindow} );
$template->param( SKIN => $skin );
$template->param( DISPLAY_RESETPASSWORD => $portal->{portalDisplayResetPassword} );
$template->param( DISPLAY_FORM => 1 );
......
......@@ -27,6 +27,7 @@
function(){}
);
<TMPL_IF NAME="LOGIN">$("input[type=password]:first").focus();</TMPL_IF>
<TMPL_IF NAME="NEWWINDOW">$('a[href^="http://"]').attr("target", "_blank");</TMPL_IF>
});
</script>
</head>
......
......@@ -266,6 +266,8 @@ sub setDefaultValues {
$self->{portalAutocomplete} ||= "off";
$self->{portalRequireOldPassword} = 1
unless ( defined( $self->{portalRequireOldPassword} ) );
$self->{portalOpenLinkInNewWindow} = 0
unless ( defined( $self->{portalOpenLinkInNewWindow} ) );
$self->{portalUserAttr} ||= "_user";
$self->{securedCookie} ||= 0;
$self->{cookieName} ||= "lemonldap";
......
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