Permalink
Browse files

Making a new project rebuild status show up.

  • Loading branch information...
1 parent 5e76701 commit 5a9df9b26454426e3179fcb5d99f05ed02cf33ae @tpryan tpryan committed Sep 21, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 main.js
View
@@ -422,9 +422,7 @@ define(function (require, exports, module) {
$newContainer.empty();
$newContainer.append(newItemHTML);
-
-
});
eve.on("pgb.click", function (e) {
var span = e.target;
@@ -538,9 +536,13 @@ define(function (require, exports, module) {
toggleRebuildLabels(json.id);
showAlert(Strings.REBUILT_SUCCESS_MESSAGE, false, null, true);
} else {
- console.log(json);
+
var $rebuildingMsg = $("#rebuilding-text-" + json.id).html();
+
if ($rebuildingMsg) {
+ if ($("#rebuilding-text-" + json.id).css("display") == "none"){
+ toggleRebuildLabels(json.id);
+ }
$("#rebuilding-text-" + json.id).html(
($rebuildingMsg.length == Strings.REBUILDING_MESSAGE.length + 3) ? Strings.REBUILDING_MESSAGE : $rebuildingMsg + "."
);

0 comments on commit 5a9df9b

Please sign in to comment.