portalOpenLinkInNewWindow parameter
This commit is contained in:
parent
c667608dac
commit
a8601a0e5f
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user