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 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>
<br/><br/>

View file

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

View file

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

View file

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

View file

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