Open tag dialog when click the tag on modal

This commit is contained in:
Matias De lellis committed 2020-06-08 10:55:30 -03:00
1 parent e42a135048
commit dc91b8756f
1 file changed
+6
+6
View File
@@ -431,6 +431,12 @@ View.prototype = {
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.
$('#modal-note-div #tag-button').click(function (event) {
event.stopPropagation();