Skip to content

Commit

Permalink
Fix JS error
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Oct 28, 2022
1 parent 1ffba6e commit 392ecd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/web/common_ts/Helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,9 @@ function likeOnMouseChange(wrap:HTMLElement, entered:boolean):void{
btn.customData.popoverTimeout=setTimeout(()=>{
delete btn.customData.popoverTimeout;
ajaxGet(btn.getAttribute("data-popover-url"), (resp:any)=>{
if(!resp.content){
return;
}
if(!popover){
popover=new Popover(wrap.querySelector(".popoverPlace"));
popover.setOnClick(()=>{
Expand Down

0 comments on commit 392ecd6

Please sign in to comment.