mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +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.
|
// Handle colors.
|
||||||
$('#app-content .circle-toolbar').click(function (event) {
|
$('#modal-note-div .circle-toolbar').click(function (event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
var oldColorTool = $('.circle-toolbar.icon-checkmark');
|
var oldColorTool = $('.circle-toolbar.icon-checkmark');
|
||||||
@@ -320,12 +324,13 @@ View.prototype = {
|
|||||||
modalnote.css("background-color", color);
|
modalnote.css("background-color", color);
|
||||||
});
|
});
|
||||||
|
|
||||||
// handle cancel and saves note.
|
// handle cancel editing notes.
|
||||||
$('#app-content #cancel-button').click(function (event) {
|
$('#modal-note-div #cancel-button').click(function (event) {
|
||||||
self.cancelEdit();
|
self.cancelEdit();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#app-content #save-button').click(function (event) {
|
// Handle save note
|
||||||
|
$('#modal-note-div #save-button').click(function (event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
var id = modalnote.data('id');
|
var id = modalnote.data('id');
|
||||||
|
|||||||
Reference in New Issue
Block a user