Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/script/app/_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ var fn_target_blank = function() {
$(this).addClass('external-link');

if ($(this).attr('aria-label')) {
var title = $(this).attr('aria-label').replace(/\s+/g, ' ').trim();
var title = $(this).attr('aria-label').replaceAll(/\s+/g, ' ').trim();

$(this).attr('title', function() {
return title + targetBlankText
});
} else if ($(this).attr('title')) {
var title = $(this).attr('title').replace(/\s+/g, ' ').trim();
var title = $(this).attr('title').replaceAll(/\s+/g, ' ').trim();

$(this).attr('title', function() {
return title + targetBlankText
});
} else {
$(this).attr('title', function() {
return $(this).text().replace(/\s+/g, ' ').trim() + targetBlankText
return $(this).text().replaceAll(/\s+/g, ' ').trim() + targetBlankText
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/script/blocs/bloc-m-key-figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(function ($, win) {
$(win).on("resize scroll", visPx);
});
};
}(jQuery, window));
}(jQuery, globalThis));

var fn_keyfigure_animated = function () {

Expand Down
2 changes: 1 addition & 1 deletion src/script/blocs/bloc-o-carte-interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ $(document).ready(function () {
if (
typeof drupalSettings !== 'undefined' &&
typeof drupalSettings.asip !== 'undefined' &&
typeof drupalSettings.asip.map !== 'undefined' ) {
drupalSettings.asip.map !== undefined ) {
regionsData = drupalSettings.asip.map;
}

Expand Down