mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Add useless dialog where tags would be edited
This commit is contained in:
19
js/script.js
19
js/script.js
@@ -404,6 +404,7 @@ View.prototype = {
|
||||
var html = Handlebars.templates['notes']({
|
||||
loaded: this._notes.isLoaded(),
|
||||
notes: this._notes.getAll(),
|
||||
tagTxt: t('quicknotes', 'Tags'),
|
||||
cancelTxt: t('quicknotes', 'Cancel'),
|
||||
saveTxt: t('quicknotes', 'Save'),
|
||||
loadingMsg: t('quicknotes', 'Looking for your notes'),
|
||||
@@ -611,6 +612,24 @@ View.prototype = {
|
||||
});
|
||||
});
|
||||
|
||||
// handle tags button.
|
||||
$('#modal-note-div #tag-button').click(function (event) {
|
||||
event.stopPropagation();
|
||||
QnDialogs.tags(
|
||||
function(result, value) {
|
||||
if (result === true && value) {
|
||||
OC.Notification.showTemporary("TEST TAGS DIALOG OK");
|
||||
}
|
||||
else {
|
||||
OC.Notification.showTemporary("TEST TAGS DIALOG CANCEL");
|
||||
}
|
||||
},
|
||||
true,
|
||||
t('quicknotes', 'Tags'),
|
||||
false
|
||||
);
|
||||
});
|
||||
|
||||
// handle cancel editing notes.
|
||||
$('#modal-note-div #cancel-button').click(function (event) {
|
||||
event.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user