Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
[#318] added logic to hide update prompt when other overlays are trig…
Browse files Browse the repository at this point in the history
…gered
  • Loading branch information
hermwong committed Mar 5, 2015
1 parent abff4bf commit 38e720f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 5 additions & 4 deletions www/index.html
Expand Up @@ -51,6 +51,7 @@
global.missing = new Array();
global.manifest = null;
global.newAppPath = null;
global.pgdVersion = "";

global.jQuery(document).ready(function() {

Expand Down Expand Up @@ -225,7 +226,7 @@
});

global.jQuery("#updateLater").click(function() {
global.jQuery("#updateOverlay").hide();
hideUpdateOverlay();
});

global.jQuery("#updateNow").click(function() {
Expand All @@ -235,9 +236,9 @@
} else {
updateApp();
}
global.jQuery("#updateOverlay").hide();
hideUpdateOverlay();
});

initSettings();

hideProjectPathError();
Expand All @@ -246,7 +247,7 @@
disableMinusButton();
getProjects();

checkIfToolbarEnabled();
parsePackageJSON();
});

function imgSwapper(img, src) {
Expand Down
6 changes: 5 additions & 1 deletion www/js/sidebar-handlers.js
Expand Up @@ -205,5 +205,9 @@ function hideOverlays() {

if (global.jQuery("#helpOverlay").is(":visible")) {
hideHelpOverlay();
}
}

if (global.jQuery("#updateOverlay").is(":visible")) {
hideUpdateOverlay();
}
}
4 changes: 4 additions & 0 deletions www/js/updater.js
Expand Up @@ -12,6 +12,10 @@ function displayInstallUpdatePrompt() {
global.jQuery("#updateOverlay").show();
}

function hideUpdateOverlay() {
global.jQuery("#updateOverlay").hide();
}

function restartApp () {
// run the new version & quit the old app
var newAppPath = global.newAppPath;
Expand Down

0 comments on commit 38e720f

Please sign in to comment.