Add useless dialog where tags would be edited

This commit is contained in:
Matias De lellis
2019-11-08 15:29:46 -03:00
parent 8f4781fc1c
commit 3ce6b401bb
5 changed files with 158 additions and 0 deletions

View File

@@ -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();