Skip to content

Commit

Permalink
Bugfix: Project page when locked, get JS Error
Browse files Browse the repository at this point in the history
  • Loading branch information
danjasuw committed Sep 27, 2019
1 parent 44a9370 commit 86fa334
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,15 @@ var processChosenUserForAddProjectAccess = function(ui, thisValue) {
};

var initInviteUser = function() {

{
const invite_user_button_DOM = document.getElementById("invite_user_button");
if ( ! invite_user_button_DOM ) {
// <button> with id 'invite_user_button' not on page so exit
return; // EARLY RETURN
}
}

initInviteUserLastNameAutoComplete();
initInviteUserEmailAutoComplete();
$("#close_invite_user_auto_complete_display").click(function(eventObject) {
Expand Down

0 comments on commit 86fa334

Please sign in to comment.