making dialogs wider to accompany deeper hierarchies. Recent changes now display full path of the note

This commit is contained in:
azivner 2017-10-11 19:41:45 -04:00
parent a363b43c2b
commit 4a4228cd03
5 changed files with 13 additions and 11 deletions

View File

@ -91,7 +91,7 @@
</div> </div>
<div id="recent-notes-dialog" title="Recent notes" style="display: none;"> <div id="recent-notes-dialog" title="Recent notes" style="display: none;">
<select id="recent-notes-select-box" size="15" style="width: 100%"> <select id="recent-notes-select-box" size="20" style="width: 100%">
</select> </select>
<br/><br/> <br/><br/>

View File

@ -3,7 +3,7 @@ function showJumpToNote() {
$("#jump-to-note-dialog").dialog({ $("#jump-to-note-dialog").dialog({
modal: true, modal: true,
width: 500 width: 800
}); });
$("#jump-to-note-autocomplete").autocomplete({ $("#jump-to-note-autocomplete").autocomplete({

View File

@ -1,7 +1,7 @@
function showRecentChanges() { function showRecentChanges() {
$("#recent-changes-dialog").dialog({ $("#recent-changes-dialog").dialog({
modal: true, modal: true,
width: 400, width: 800,
height: 700 height: 700
}); });
@ -13,13 +13,11 @@ function showRecentChanges() {
const dayCache = {}; const dayCache = {};
for (const row of result) { for (const row of result) {
if (row.encryption > 0) { if (row.encryption > 0 && !isEncryptionAvailable()) {
if (isEncryptionAvailable()) { row.note_title = "[encrypted]";
row.note_title = decryptString(row.note_title); }
} else {
else { row.note_title = getFullName(row.note_id);
row.note_title = "[encrypted]";
}
} }

View File

@ -17,7 +17,7 @@ function showRecentNotes() {
$("#recent-notes-dialog").dialog({ $("#recent-notes-dialog").dialog({
modal: true, modal: true,
width: 500 width: 800
}); });
let recentNotesSelectBox = $('#recent-notes-select-box'); let recentNotesSelectBox = $('#recent-notes-select-box');

View File

@ -28,6 +28,10 @@ function getNoteTitle(noteId) {
function getFullName(noteId) { function getFullName(noteId) {
let note = getNodeByKey(noteId); let note = getNodeByKey(noteId);
if (note === null) {
return "[unknown]";
}
if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) { if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) {
return null; return null;
} }