diff --git a/css/includes/components/_utils.scss b/css/includes/components/_utils.scss index 160504bc4d1..cb5a8aa4b75 100644 --- a/css/includes/components/_utils.scss +++ b/css/includes/components/_utils.scss @@ -44,13 +44,6 @@ transition: border-color 0.3s; } -// Apply the same font-size and line-height as btn-text. -// Useful when replacing a btn-text content by a loading icon. -.btn-text-loading { - font-size: var(--tblr-btn-font-size) !important; - line-height: var(--tblr-btn-line-height) !important; -} - .w-fit-content { width: fit-content !important; } diff --git a/js/modules/IllustrationPicker/Controller.js b/js/modules/IllustrationPicker/Controller.js index 39dc1859034..12dc9d9f3a6 100644 --- a/js/modules/IllustrationPicker/Controller.js +++ b/js/modules/IllustrationPicker/Controller.js @@ -167,16 +167,9 @@ export class GlpiIllustrationPickerController const button = this.#container .querySelector(`[data-glpi-icon-picker-go-to-page="${page}"]`) ; - const button_text = button.querySelector( - '[data-glpi-icon-picker-pagination-text' - ); - const button_loading_indicator = button.querySelector( - '[data-glpi-icon-picker-pagination-loading-icon' - ); button.classList.add('active'); - button_text.classList.add('d-none'); - button_loading_indicator.classList.remove('d-none'); + button.classList.add('btn-loading'); // Apply loading indicator to the search results this.#getSearchResultsDiv().style.opacity = 0.7; @@ -225,13 +218,13 @@ export class GlpiIllustrationPickerController #getSearchDefaultIcon() { - return this.#container.querySelector('[data-glpi-icon-picker-filter-default-icon') + return this.#container.querySelector('[data-glpi-icon-picker-filter-default-icon]') ; } #getSearchLoadingIcon() { - return this.#container.querySelector('[data-glpi-icon-picker-filter-loading-icon'); + return this.#container.querySelector('[data-glpi-icon-picker-filter-loading-icon]'); } #getSearchResultsDiv() diff --git a/src/Ajax.php b/src/Ajax.php index 1e7cbdd7183..bb43c88d306 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -428,7 +428,7 @@ class='nav-link justify-content-between $navlinkp $display_class' updateCurrentTab(); return; } - $(target).html(''); + $(target).html(``); $.get(url, function(data) { $(target).html(data); diff --git a/src/Glpi/Dashboard/Grid.php b/src/Glpi/Dashboard/Grid.php index a19534855ca..05628c126ed 100644 --- a/src/Glpi/Dashboard/Grid.php +++ b/src/Glpi/Dashboard/Grid.php @@ -153,7 +153,7 @@ public function getCards() $card_html = << - + HTML; $this->addGridItem( diff --git a/src/Impact.php b/src/Impact.php index a871625d41f..3e8e8a59a1b 100644 --- a/src/Impact.php +++ b/src/Impact.php @@ -1064,7 +1064,7 @@ public static function printImpactNetworkContainer() echo ''; //