Skip to content

Commit

Permalink
Minor fix for js confirm link delete
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Aug 14, 2024
1 parent 2f5e085 commit e91001e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openatlas/display/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def link(
external: bool = False) -> str:
html = ''
if isinstance(object_, (str, LazyString)):
js = f' onclick="{uc_first(js)}"' if js else ''
js = f' onclick="{js}"' if js else ''
ext = ' target="_blank" rel="noopener noreferrer"' if external else ''
if uc_first_ and not str(object_).startswith('http'):
object_ = uc_first(object_)
Expand Down

0 comments on commit e91001e

Please sign in to comment.