Skip to content

Commit 1d247fe

Browse files
authored
Merge pull request #10 from peterjuma/master
Align Edit Note Buttons
2 parents 547957d + e33d71a commit 1d247fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

public/javascript/script.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ function deleteNote(notediv) {
206206
}
207207
}
208208

209-
210-
211209
function countDown(epoch_timestamp) {
212210
var now = new Date().getTime();
213211
// Find the distance between now and the count down date
@@ -351,8 +349,8 @@ function editNote(notediv) {
351349
html = `<div name=${matching.noteid} class="editor" id="editpad">
352350
<input name="title" type="text" id="title">
353351
<textarea style="margin-top: 20px;" name="notebody" id="notebody"></textarea>
354-
<button onclick='update(this)' name="${matching.noteid}" class="btn btnnote" style="float: left; background-color: #ddd;" onMouseOut="this.style.color='crimson'" onMouseOver="this.style.color='green'"><i class="fa fa-check fa-lg" aria-hidden="true"></i> OK</button>
355-
<button onclick='cancelEdit(this)' name="${matching.noteid}" class="btn btnnote" style="float: right; background-color: #ddd;" onMouseOut="this.style.color='crimson'" onMouseOver="this.style.color='green'"><i class="fas fa-window-close fa-lg"></i> Cancel</button>
352+
<button onclick='update(this)' name="${matching.noteid}" class="btn btnnote" style="float: left; background-color: #ddd; margin-top: 17px;" onMouseOut="this.style.color='crimson'" onMouseOver="this.style.color='green'"><i class="fa fa-check fa-lg" aria-hidden="true"></i> OK</button>
353+
<button onclick='cancelEdit(this)' name="${matching.noteid}" class="btn btnnote" style="float: right; background-color: #ddd;margin-top: 17px;" onMouseOut="this.style.color='crimson'" onMouseOver="this.style.color='green'"><i class="fas fa-window-close fa-lg"></i> Cancel</button>
356354
</div>`
357355
editBox.innerHTML = html;
358356
document.getElementById("title").value = turndownService.turndown(marked(matching.title));

0 commit comments

Comments
 (0)