Commit 9d6f9097 authored by Leigh B Stoller's avatar Leigh B Stoller

Use animation for Update Successful messages.

parent 7e51eaa6
......@@ -363,3 +363,23 @@ blockquote #selected_profile_description {
{
min-width: 350px ! important;
}
/* Update for better cross browser compat */
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-moz-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
/* Update Successful flasher on the manage profile page. */
.apt-success {
position: absolute;
z-index: 1000;
margin-left: auto;
margin-right: auto;
width: 300;
left: 0;
right: 0;
}
......@@ -280,6 +280,24 @@ function (_, sup, filesize, ShowImagingModal,
DisableButton('profile_description');
}
//
// Show/Hide the Update Successful animation.
//
function hideNotifyUpdate() {
$('#notifyupdate').fadeOut();
}
function showNotifyUpdate() {
$("#notifyupdate").addClass("in");
setTimeout(function () {
hideNotifyUpdate();
}, 2000);
}
// Schedule to flash on one second after page loaded.
function initNotifyUpdate() {
setTimeout(function () {
showNotifyUpdate();
}, 1000);
}
//
// If taking a disk image, throw up the modal that tracks progress.
//
if (snapping) {
......@@ -289,6 +307,9 @@ function (_, sup, filesize, ShowImagingModal,
else {
EnableButtons();
DisableButton("profile_submit_button");
if (window.UPDATED) {
initNotifyUpdate();
}
}
}
......
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