Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making a new project rebuild status show up.

  • Loading branch information...
commit 5a9df9b26454426e3179fcb5d99f05ed02cf33ae 1 parent 5e76701
@tpryan tpryan authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 main.js
View
8 main.js
@@ -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 + "."
);
Please sign in to comment.
Something went wrong with that request. Please try again.