Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
Making a new project rebuild status show up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrence Ryan committed Sep 24, 2012
1 parent 5e76701 commit 5a9df9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.js
Expand Up @@ -422,9 +422,7 @@ define(function (require, exports, module) {
$newContainer.empty(); $newContainer.empty();
$newContainer.append(newItemHTML); $newContainer.append(newItemHTML);






}); });
eve.on("pgb.click", function (e) { eve.on("pgb.click", function (e) {
var span = e.target; var span = e.target;
Expand Down Expand Up @@ -538,9 +536,13 @@ define(function (require, exports, module) {
toggleRebuildLabels(json.id); toggleRebuildLabels(json.id);
showAlert(Strings.REBUILT_SUCCESS_MESSAGE, false, null, true); showAlert(Strings.REBUILT_SUCCESS_MESSAGE, false, null, true);
} else { } else {
console.log(json);
var $rebuildingMsg = $("#rebuilding-text-" + json.id).html(); var $rebuildingMsg = $("#rebuilding-text-" + json.id).html();

if ($rebuildingMsg) { if ($rebuildingMsg) {
if ($("#rebuilding-text-" + json.id).css("display") == "none"){
toggleRebuildLabels(json.id);
}
$("#rebuilding-text-" + json.id).html( $("#rebuilding-text-" + json.id).html(
($rebuildingMsg.length == Strings.REBUILDING_MESSAGE.length + 3) ? Strings.REBUILDING_MESSAGE : $rebuildingMsg + "." ($rebuildingMsg.length == Strings.REBUILDING_MESSAGE.length + 3) ? Strings.REBUILDING_MESSAGE : $rebuildingMsg + "."
); );
Expand Down

0 comments on commit 5a9df9b

Please sign in to comment.