Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
ce99421d
Commit
ce99421d
authored
Jun 26, 2019
by
Pierre Dittgen
Browse files
Open error buble links in new tab/window
parent
6295d2f5
Pipeline
#1116
failed with stage
in 4 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/templates/validation_report.html
View file @
ce99421d
...
...
@@ -176,5 +176,15 @@ $('[data-toggle="popover"]').popover({
}
},
100
);
});
// Open links found in error description in a new window/tab
$
(
'
body
'
).
on
(
'
mouseover
'
,
'
div.popover a
'
,
function
()
{
$
(
this
).
prop
(
'
title
'
,
'
Ouvrir dans une nouvelle fenêtre
'
);
});
$
(
'
body
'
).
on
(
'
click
'
,
'
div.popover a
'
,
function
()
{
var
url
=
$
(
this
).
prop
(
'
href
'
);
window
.
open
(
url
,
'
_blank
'
)
return
false
;
});
</script>
{% endblock %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment