Skip to content
Snippets Groups Projects
Commit 88168c42 authored by David Surville's avatar David Surville
Browse files

- [Fix] PopAjax : attribut "data-title" non utilisable pour le titre du...

- [Fix] PopAjax : attribut "data-title" non utilisable pour le titre du popover car le paramètre "loading-title" était chargé par défaut lors de l'affichage du popover
- Ré-intégration de l'attribut "title" sur l'élément auquel est rattaché le popover car l'initialisation du popover le supprime et le remplace par l'attribut "data-bs-original-title"
parent cd4a78ac
No related branches found
No related tags found
No related merge requests found
Pipeline #22834 passed
CHANGELOG
=========
5.1.11 (13/07/2023)
-------------------
- [Fix] PopAjax : attribut "data-title" non utilisable pour le titre du popover car le paramètre "loading-title" était chargé par défaut lors de l'affichage du popover
- Ré-intégration de l'attribut "title" sur l'élément auquel est rattaché le popover car l'initialisation du popover le supprime et le remplace par l'attribut "data-bs-original-title"
5.1.10 (07/06/2023)
-------------------
- [Fix] Suppression de la config liée aux entités (UnicaenApp\Entity\Db) car le répertoire n'existe plus suite à la suppression d'Instadia
......
......@@ -973,6 +973,7 @@ $.widget("unicaen.popAjax", {
_create: function () {
var that = this;
var attrTitle = that.element.attr('title');
that.loadOptions();
......@@ -997,6 +998,9 @@ $.widget("unicaen.popAjax", {
content: that.options.content ? that.options.content : that.options.loadingContent,
};
that.popInstance = new bootstrap.Popover(that.element, popoptions);
if(typeof attrTitle !== 'undefined') {
that.element.attr('title', attrTitle);
}
that.element[0].addEventListener('show.bs.popover', () => {
that.show(true);
......@@ -1061,7 +1065,7 @@ $.widget("unicaen.popAjax", {
var that = this;
this.ajaxLoaded = true;
this.setTitle(this.options.loadingTitle);
// this.setTitle(this.options.loadingTitle);
this.setContent(this.options.loadingContent, true);
$.ajax({
url: this.options.url,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment