Testing more

This commit is contained in:
Rick Falkvinge
2012-11-15 10:12:36 +00:00
parent d688c01cc8
commit 5b88828082
2 changed files with 22 additions and 1 deletions
+9 -1
View File
@@ -90,6 +90,9 @@
async: false, // blocks until function returns - race conditions otherwise
success: function (msg) {
if (msg.d == true) {
alert('Yes, writable');
// Yes, config is writable. Hide "unwritable" div, show "writable" div, all is nice
$('#DivDatabaseUnwritable').css('display', 'none');
$('#DivDatabaseWritable').css('display', 'inline');
@@ -97,6 +100,8 @@
} else {
// Config is NOT writable. Keep the error on-screen and keep re-checking every two seconds.
alert('No, not writable - rechecking');
setTimeout('recheckConfigurationWritability();', 5000); // 5s until first re-check
}
}
@@ -143,10 +148,11 @@
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false, // blocks until function returns - race conditions otherwise
success: function (msg) {
if (msg.d == true) {
alert('Yes, writable - rechecking');
// Yes, config is writable. Hide "unwritable" div, show "writable" div, all is nice
$('#DivDatabaseUnwritable').css('display', 'none');
$('#DivDatabaseWritable').fadeIn('slow');
@@ -154,6 +160,8 @@
} else {
// Config is NOT writable. Keep the error on-screen and keep re-checking every two seconds.
alert('No, not writable - rechecking');
setTimeout('recheckConfigurationWritability();', 2000);
}
}
+13
View File
@@ -317,4 +317,17 @@
.ui-progressbar-value {
background-image: url('/Images/Abstract/activizr-progressbar-animation.gif');
height: 13px;
border-radius: 3px;
box-shadow: 1px 0px 5px 0px #7F5500;
}
.ui-progressbar {
height: 13px;
width: 100%;
border: solid 1px #C78B15;
border-radius: 3px;
box-shadow: inset 0px 1px 10px 0px #C78B15;
margin-bottom: 8px;
}