mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Redirection after changing browser configuration
https://fedorahosted.org/freeipa/ticket/1502 Added redirection link. CSS styling of configuration page. Some CSS cleaning.
This commit is contained in:
parent
d08dcb40e1
commit
b936574672
@ -8,7 +8,6 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="../ui/jquery-ui.css" />
|
<link rel="stylesheet" type="text/css" href="../ui/jquery-ui.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="ipa_error.css" />
|
<link rel="stylesheet" type="text/css" href="ipa_error.css" />
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if (navigator.userAgent.indexOf("Firefox") != -1 ||
|
if (navigator.userAgent.indexOf("Firefox") != -1 ||
|
||||||
@ -18,8 +17,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="header-bg">
|
<body id="header-bg">
|
||||||
@ -32,11 +29,10 @@
|
|||||||
<h1>Configure Browser</h1>
|
<h1>Configure Browser</h1>
|
||||||
<p> Click the below button to configure your browser </p>
|
<p> Click the below button to configure your browser </p>
|
||||||
<object data="jar:/ipa/errors/configure.jar!/preferences.html"
|
<object data="jar:/ipa/errors/configure.jar!/preferences.html"
|
||||||
type="text/html"><\/object>
|
type="text/html" class="browser-config"></object>
|
||||||
</div>
|
</div>
|
||||||
<div class="textblockkrb">
|
<div class="textblockkrb">
|
||||||
<p>Once you have configured your browser,
|
<p><a href="/ipa/ui">Return to the Web UI</a></p>
|
||||||
<a href="/ipa/ui">click here to return to the Web UI</a></p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -645,13 +645,11 @@ form#login {
|
|||||||
margin-top: 5em;
|
margin-top: 5em;
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
padding-left: 3em;
|
padding-left: 3em;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.textblockkrb ul li {
|
.textblockkrb ul li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: .15em;
|
padding: .15em;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -672,10 +670,13 @@ h5 {
|
|||||||
margin-bottom: 3em;
|
margin-bottom: 3em;
|
||||||
margin-left: 5em;
|
margin-left: 5em;
|
||||||
margin-top: -3em;
|
margin-top: -3em;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Browser configuration */
|
||||||
|
|
||||||
|
object.browser-config {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
/* Search */
|
/* Search */
|
||||||
|
|
||||||
|
@ -2,10 +2,33 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Automatically set browser preferences</title>
|
<title>Automatically set browser preferences</title>
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
font-family:"Liberation Sans",Arial,Sans;
|
||||||
|
font-size:11px;
|
||||||
|
}
|
||||||
|
.textblock {
|
||||||
|
text-align: left;
|
||||||
|
margin-top: 1.0em;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #1D85D5;
|
||||||
|
font-weight: normal;
|
||||||
|
text-decoration: none;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form action="undefined" method="get">
|
<form action="undefined" method="get">
|
||||||
<input type=button onclick="setPreferences()" name="prefs" value="Configure Firefox">
|
<input type=button onclick="setPreferences()" name="prefs" value="Configure Firefox">
|
||||||
|
<div id="success" class="textblock" style="display:none;">
|
||||||
|
<p>Browser configured.</p>
|
||||||
|
<p>
|
||||||
|
<a href="/ipa/ui" id="redirect_link" target="_top">Click here to return to the Web UI.</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -40,6 +63,12 @@
|
|||||||
netscape.security.PrivilegeManager.disablePrivilege(privilege);
|
netscape.security.PrivilegeManager.disablePrivilege(privilege);
|
||||||
|
|
||||||
alert("Successfully configured Firefox for single sign-on.");
|
alert("Successfully configured Firefox for single sign-on.");
|
||||||
|
|
||||||
|
var redirect_link = document.getElementById('redirect_link');
|
||||||
|
redirect_link.href = "https://" + location.hostname + location.port + "/ipa/ui";
|
||||||
|
|
||||||
|
var successDiv = document.getElementById('success');
|
||||||
|
successDiv.style['display'] = "block";
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
alert("Unable to apply recommended settings.\n\n" +
|
alert("Unable to apply recommended settings.\n\n" +
|
||||||
"Click on the Certificate Authority link and select trust for all, " +
|
"Click on the Certificate Authority link and select trust for all, " +
|
||||||
|
Loading…
Reference in New Issue
Block a user