mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed post view for anonymous users
This commit is contained in:
@ -21,8 +21,11 @@ App.Controls.TagInput = function(
|
||||
inputConfirmed: null,
|
||||
};
|
||||
|
||||
if ($underlyingInput.length !== 1) {
|
||||
throw new Error('Cannot set tag input to more than one elements at once');
|
||||
if ($underlyingInput.length === 0) {
|
||||
throw new Error('Tag input element was not found');
|
||||
}
|
||||
if ($underlyingInput.length > 1) {
|
||||
throw new Error('Cannot set tag input to more than one element at once');
|
||||
}
|
||||
if ($underlyingInput.attr('data-tagged')) {
|
||||
throw new Error('Tag input was already initialized for this element');
|
||||
|
Reference in New Issue
Block a user