Skip to content

Commit

Permalink
fix a few more missing tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
aborel committed Jun 12, 2023
1 parent 92aca1a commit 4b5fff1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zenodo_greasemonkey.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,13 @@ function addButtons() {
let referencesElement = $("div#references");
if (referencesElement.length) {
let referencesCheck = $('<span><b>&nbsp;Relevant sources?</b> <input type="checkbox" class="check" name="nth" value="N7" /><span>');
referencesCheck.attr("title", checklistData["N7"].full);
referencesCheck.tooltip();
referencesElement.append(referencesCheck);
} else {
referencesElement = $("div#citation");
let referencesCheck = $('<span><b>&nbsp;No "References" section, is this OK?</b> <input type="checkbox" class="check" name="nth" value="N7" /><span>');
referencesCheck.attr("title", checklistData["N7"].full);
referencesCheck.tooltip();
referencesElement.prepend(referencesCheck);
}
Expand All @@ -379,20 +381,20 @@ function addButtons() {
console.log('Keywords', keywords);
if (keywords.length) {
let keywordCheck = $('<span>&nbsp;<input type="checkbox" class="check" name="nth" value="N8" /><span>');
keywordCheck.attr("title", checklistData["N8"].full);
keywordCheck.tooltip();
keywords.append(keywordCheck);
} else {
let keywordCheck = $('<dt>No keywords here, is it OK? &nbsp;<input type="checkbox" name="nth" class="check" value="N8" /></dt>');
rkeywordCheck.attr("title", checklistData["N8"].full);
keywordCheck.tooltip();
importantFrame.append(keywordCheck);
}

contentElement.prepend(contentChecks);


}


function openMailEditor(url) {
location.href = url;
}
Expand Down

0 comments on commit 4b5fff1

Please sign in to comment.