Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2012-02-09 00:26:35 -0500
committerWinston Prakash2012-02-09 00:26:35 -0500
commitecd1d82c7e8427e3f1d844bd776e7e808dffb4e2 (patch)
tree7e9f36ebee4f4fe29a2bf335289d230ba0767757
parent681462147cae2796a93f800358954050c38126ed (diff)
downloadorg.eclipse.hudson.core-ecd1d82c7e8427e3f1d844bd776e7e808dffb4e2.tar.gz
org.eclipse.hudson.core-ecd1d82c7e8427e3f1d844bd776e7e808dffb4e2.tar.xz
org.eclipse.hudson.core-ecd1d82c7e8427e3f1d844bd776e7e808dffb4e2.zip
Use jQuery hide() and show() instead of manipulating the opacity
-rw-r--r--hudson-core/src/main/resources/hudson/security/SecurityRealm/loginDialog.jelly15
-rw-r--r--hudson-core/src/main/resources/hudson/security/SecurityRealm/loginLink.jelly12
-rw-r--r--hudson-war/src/main/webapp/css/style.css15
3 files changed, 21 insertions, 21 deletions
diff --git a/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginDialog.jelly b/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginDialog.jelly
index 1970a49f..eef2528c 100644
--- a/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginDialog.jelly
+++ b/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginDialog.jelly
@@ -54,21 +54,6 @@
<input style="margin-left:10px; width:75px" type="button" id="cancelButton" value="${%Cancel}" />
</form>
- <style type="text/css">
- #loginError, #loginMsg {
- opacity:0;
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
- filter: alpha(opacity=0);
- text-align:center;
- font-weight:bold;
- }
- #loginError {
- color: red;
- }
- #loginMsg {
- color: black;
- }
- </style>
<div id="loginError">
${%Invalid login information. Please try again.}
diff --git a/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginLink.jelly b/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginLink.jelly
index e8505c29..206efa23 100644
--- a/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginLink.jelly
+++ b/hudson-core/src/main/resources/hudson/security/SecurityRealm/loginLink.jelly
@@ -40,8 +40,8 @@
}
function submitForm(){
- jQuery('#loginMsg').css({ opacity: 1.0 });
- jQuery('#loginError').css({ opacity: 0.0 });
+ jQuery('#loginMsg').show();
+ jQuery('#loginError').hide();
var dataString = jQuery("#loginForm").serialize();
jQuery.ajax({
type: 'POST',
@@ -51,8 +51,8 @@
window.location.href="${from}";
},
error: function(){
- jQuery('#loginError').css({ opacity: 1.0 });
- jQuery('#loginMsg').css({ opacity: 0.0 });
+ jQuery('#loginError').show();
+ jQuery('#loginMsg').hide();
},
dataType: "html"
});
@@ -82,8 +82,8 @@
jQuery.unblockUI();
jQuery('#j_username').attr({value:""});
jQuery('#j_password').attr({value:""});
- jQuery('#loginError').css({ opacity: 0.0 });
- jQuery('#loginMsg').css({ opacity: 0.0 });
+ jQuery('#loginError').hide();
+ jQuery('#loginMsg').hide();
return false;
});
diff --git a/hudson-war/src/main/webapp/css/style.css b/hudson-war/src/main/webapp/css/style.css
index 03c06116..f9f42027 100644
--- a/hudson-war/src/main/webapp/css/style.css
+++ b/hudson-war/src/main/webapp/css/style.css
@@ -1065,4 +1065,19 @@ table.configure > td {
.timeline{
height:250px;
border: solid 1px #A583B9;
+}
+
+/* === Login Dialog ==== */
+
+#loginError, #loginMsg {
+ text-align:center;
+ font-weight:bold;
+}
+#loginError {
+ color: red;
+ display: none;
+}
+#loginMsg {
+ color: black;
+ display: none;
} \ No newline at end of file

Back to the top