Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.

This commit is contained in:
Chad Kieffer
2009-10-04 00:27:22 -06:00
parent 9145331fd4
commit 3e6ba7acc3
148 changed files with 1277 additions and 1316 deletions

View File

@@ -4,7 +4,7 @@
var animation = null;
var delta = 1;
animate_progress_bar = function() {
var current_value = parseInt($(".gProgressBar div").css("width").replace("%", ""));
var current_value = parseInt($(".g-progress-bar div").css("width").replace("%", ""));
if (target_value > current_value) {
// speed up
delta = Math.min(delta + 0.04, 3);
@@ -14,10 +14,10 @@
}
if (target_value == 100) {
$(".gProgressBar").progressbar("value", 100);
$(".g-progress-bar").progressbar("value", 100);
} else if (current_value != target_value || delta != 1) {
var new_value = Math.min(current_value + delta, target_value);
$(".gProgressBar").progressbar("value", new_value);
$(".g-progress-bar").progressbar("value", new_value);
animation = setTimeout(function() { animate_progress_bar(target_value); }, 100);
} else {
animation = null;
@@ -35,30 +35,30 @@
if (!animation) {
animate_progress_bar();
}
$("#gStatus").html("" + data.task.status);
$("#g-status").html("" + data.task.status);
if (data.task.done) {
$("#gPauseButton").hide();
$("#gDoneButton").show();
$("#g-pause-button").hide();
$("#g-done-button").show();
} else {
setTimeout(update, 100);
}
}
});
}
$(".gProgressBar").progressbar({value: 0});
$(".g-progress-bar").progressbar({value: 0});
update();
dismiss = function() {
window.location.reload();
}
</script>
<div id="gProgress">
<div id="g-progress">
<h1> <?= $task->name ?> </h1>
<div class="gProgressBar"></div>
<div id="gStatus">
<div class="g-progress-bar"></div>
<div id="g-status">
<?= t("Starting up...") ?>
</div>
<div class="g-txt-right">
<button id="gPauseButton" class="ui-state-default ui-corner-all" onclick="dismiss()"><?= t("Pause") ?></button>
<button id="gDoneButton" class="ui-state-default ui-corner-all" style="display: none" onclick="dismiss()"><?= t("Close") ?></button>
<button id="g-pause-button" class="ui-state-default ui-corner-all" onclick="dismiss()"><?= t("Pause") ?></button>
<button id="g-done-button" class="ui-state-default ui-corner-all" style="display: none" onclick="dismiss()"><?= t("Close") ?></button>
</div>
</div>