mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Use #modal-note-dev id to binding actions instead #app-content
This commit is contained in:
13
js/script.js
13
js/script.js
@@ -307,8 +307,12 @@ View.prototype = {
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
* Modal actions.
|
||||
*/
|
||||
|
||||
// Handle colors.
|
||||
$('#app-content .circle-toolbar').click(function (event) {
|
||||
$('#modal-note-div .circle-toolbar').click(function (event) {
|
||||
event.stopPropagation();
|
||||
|
||||
var oldColorTool = $('.circle-toolbar.icon-checkmark');
|
||||
@@ -320,12 +324,13 @@ View.prototype = {
|
||||
modalnote.css("background-color", color);
|
||||
});
|
||||
|
||||
// handle cancel and saves note.
|
||||
$('#app-content #cancel-button').click(function (event) {
|
||||
// handle cancel editing notes.
|
||||
$('#modal-note-div #cancel-button').click(function (event) {
|
||||
self.cancelEdit();
|
||||
});
|
||||
|
||||
$('#app-content #save-button').click(function (event) {
|
||||
// Handle save note
|
||||
$('#modal-note-div #save-button').click(function (event) {
|
||||
event.stopPropagation();
|
||||
|
||||
var id = modalnote.data('id');
|
||||
|
||||
Reference in New Issue
Block a user