fixes #1722
This commit is contained in:
@@ -269,13 +269,17 @@ Danbooru.Note = {
|
|||||||
|
|
||||||
if (Danbooru.meta("current-user-name") !== "Anonymous") {
|
if (Danbooru.meta("current-user-name") !== "Anonymous") {
|
||||||
$note_body.click(function(e) {
|
$note_body.click(function(e) {
|
||||||
var $note_body_inner = $(e.currentTarget);
|
if (e.target.tagName !== "A") {
|
||||||
Danbooru.Note.Edit.show($note_body_inner);
|
var $note_body_inner = $(e.currentTarget);
|
||||||
|
Danbooru.Note.Edit.show($note_body_inner);
|
||||||
|
}
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$note_body.click(function(e) {
|
$note_body.click(function(e) {
|
||||||
Danbooru.notice("You must be logged in to edit notes");
|
if (e.target.tagName !== "A") {
|
||||||
|
Danbooru.notice("You must be logged in to edit notes");
|
||||||
|
}
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user