Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions dist/angular-tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
}
}
, onTooltipTemplateUrlChange = function onTooltipTemplateUrlChange(newValue) {
if (newValue) {
if (newValue && !$attrs.tooltipTemplateUrlCache) {

$http.get(newValue).then(function onResponse(response) {

Expand Down Expand Up @@ -613,17 +613,9 @@
tooltipElement.removeClass('_force-hidden'); //see lines below, this forces to hide tooltip when is empty
tipTipElement.empty();
tipTipElement.append(closeButtonElement);
$http.get(newValue).then(function onResponse(response) {

if (response &&
response.data) {

tipTipElement.append($compile(response.data)(scope));
$timeout(function doLater() {

onTooltipShow();
});
}
tipTipElement.append($compile(template)(scope));
$timeout(function doLater() {
onTooltipShow();
});
}
} else {
Expand Down