Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions src/utils/UpdateNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ define(function (require, exports, module) {
var $dlg = $(".update-dialog.instance"),
$updateList = $dlg.find(".update-info");

// Make the update notification icon clickable again
_addedClickHandler = false;

updates.Strings = Strings;
$updateList.html(Mustache.render(UpdateListTemplate, updates));
}
Expand Down Expand Up @@ -376,12 +379,14 @@ define(function (require, exports, module) {
var $updateNotification = $("#update-notification");

$updateNotification.css("display", "block");
if (!_addedClickHandler) {
_addedClickHandler = true;
$updateNotification.on("click", function () {

$updateNotification.on("click", function () {
// Block the click until the Notification Dialog opens
if (!_addedClickHandler) {
_addedClickHandler = true;
checkForUpdate(true);
});
}
}
});

// Only show the update dialog if force = true, or if the user hasn't been
// alerted of this update
Expand Down