new code icons, protected note icon in note tree is now styled using CSS filter drop shadow

This commit is contained in:
azivner
2018-01-26 22:32:44 -05:00
parent b2ff97ccf2
commit 5981b9bc7b
9 changed files with 20 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ const protected_session = (function() {
const dialogEl = $("#protected-session-password-dialog");
const passwordFormEl = $("#protected-session-password-form");
const passwordEl = $("#protected-session-password");
const noteDetailWrapperEl = $("#note-detail-wrapper");
let protectedSessionDeferred = null;
let lastProtectedSessionOperationDate = null;
@@ -24,6 +25,8 @@ const protected_session = (function() {
if (requireProtectedSession && !isProtectedSessionAvailable()) {
protectedSessionDeferred = dfd;
noteDetailWrapperEl.hide();
dialogEl.dialog({
modal: modal,
width: 400,
@@ -63,6 +66,8 @@ const protected_session = (function() {
if (protectedSessionDeferred !== null) {
ensureDialogIsClosed(dialogEl, passwordEl);
noteDetailWrapperEl.show();
protectedSessionDeferred.resolve();
protectedSessionDeferred = null;