Open tag dialog when click the tag on modal

This commit is contained in:
Matias De lellis
2020-06-08 10:55:30 -03:00
parent e42a135048
commit dc91b8756f

View File

@@ -431,6 +431,12 @@ View.prototype = {
self._editableColor(color); self._editableColor(color);
}); });
// Handle tags on modal
$('#modal-note-div').on('click', '.slim-tag', function (event) {
event.stopPropagation();
$('#modal-note-div #tag-button').trigger( "click");
});
// handle tags button. // handle tags button.
$('#modal-note-div #tag-button').click(function (event) { $('#modal-note-div #tag-button').click(function (event) {
event.stopPropagation(); event.stopPropagation();