Loading resources/views/editnote.blade.php +6 −13 Original line number Diff line number Diff line Loading @@ -5,13 +5,10 @@ <form id="noteform"> <input type="text" id="cleartextTitle"> <div id="test-editor"> <div class="d-flex justify-content-center" id="loadingSpinner"> <div class="spinner-border" role="status"> <span class="sr-only">Loading...</span> </div> </div> <textarea style="display:none;" id="noteeditor"></textarea> </div> <div class="form-group"> <label for="noteeditor">Entry</label> <textarea class="form-control" id="noteeditor" rows="10"></textarea> </div> </div> <p> <button id="editor-submit" type="submit" class="btn btn-success">Save</button> — <span id="savedstatus" class="text-muted">Last saved <span id="saved-time"></span></span> Loading @@ -34,11 +31,7 @@ loadNote(); }); var editor = editormd("test-editor", { width: "100%", height: 720, path: "/editormd/lib/" }); function loadNote() { $.ajax({ Loading @@ -59,7 +52,7 @@ e.preventDefault(); // avoid to execute the actual submit of the form. encryptedTitle = CryptoJS.AES.encrypt($("#cleartextTitle").val(), sessionStorage.getItem('key')).toString(); encryptedBody = CryptoJS.AES.encrypt(editor.getMarkdown(), sessionStorage.getItem('key')).toString(); encryptedBody = CryptoJS.AES.encrypt($("#noteeditor").val(), sessionStorage.getItem('key')).toString(); $.post("/note/edit/{{$id}}", { "_token": "{{ csrf_token() }}", title: encryptedTitle, Loading Loading
resources/views/editnote.blade.php +6 −13 Original line number Diff line number Diff line Loading @@ -5,13 +5,10 @@ <form id="noteform"> <input type="text" id="cleartextTitle"> <div id="test-editor"> <div class="d-flex justify-content-center" id="loadingSpinner"> <div class="spinner-border" role="status"> <span class="sr-only">Loading...</span> </div> </div> <textarea style="display:none;" id="noteeditor"></textarea> </div> <div class="form-group"> <label for="noteeditor">Entry</label> <textarea class="form-control" id="noteeditor" rows="10"></textarea> </div> </div> <p> <button id="editor-submit" type="submit" class="btn btn-success">Save</button> — <span id="savedstatus" class="text-muted">Last saved <span id="saved-time"></span></span> Loading @@ -34,11 +31,7 @@ loadNote(); }); var editor = editormd("test-editor", { width: "100%", height: 720, path: "/editormd/lib/" }); function loadNote() { $.ajax({ Loading @@ -59,7 +52,7 @@ e.preventDefault(); // avoid to execute the actual submit of the form. encryptedTitle = CryptoJS.AES.encrypt($("#cleartextTitle").val(), sessionStorage.getItem('key')).toString(); encryptedBody = CryptoJS.AES.encrypt(editor.getMarkdown(), sessionStorage.getItem('key')).toString(); encryptedBody = CryptoJS.AES.encrypt($("#noteeditor").val(), sessionStorage.getItem('key')).toString(); $.post("/note/edit/{{$id}}", { "_token": "{{ csrf_token() }}", title: encryptedTitle, Loading