Skip to content

Commit 8f85254

Browse files
ert78gbmondalaci
authored andcommitted
fix(tooltip): Uncomment JQuery tooltip codes (#420)
1 parent 73ce1df commit 8f85254

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/uhk-web/src/app/directives/tooltip/tooltip.directive.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ export class TooltipDirective implements AfterContentInit, OnChanges {
3030
}
3131

3232
private init() {
33-
// jQuery(this.elementRef.nativeElement).tooltip({
34-
// placement: this.placement,
35-
// html: this.html,
36-
// template: this.customTooltipTemplate,
37-
// title: this.title
38-
// });
33+
(<any>jQuery(this.elementRef.nativeElement)).tooltip({
34+
placement: this.placement,
35+
html: this.html,
36+
template: this.customTooltipTemplate,
37+
title: this.title
38+
});
3939
}
4040

4141
private fixTitle() {
42-
// jQuery(this.elementRef.nativeElement).tooltip({
43-
// placement: this.placement,
44-
// html: this.html,
45-
// template: this.customTooltipTemplate,
46-
// title: this.title
47-
// });
48-
49-
// jQuery(this.elementRef.nativeElement)
50-
// .attr('title', this.title)
51-
// .tooltip('fixTitle');
42+
(<any>jQuery(this.elementRef.nativeElement)).tooltip({
43+
placement: this.placement,
44+
html: this.html,
45+
template: this.customTooltipTemplate,
46+
title: this.title
47+
});
48+
49+
(<any>jQuery(this.elementRef.nativeElement)
50+
.attr('title', this.title))
51+
.tooltip('fixTitle');
5252
}
5353
}

0 commit comments

Comments
 (0)