Commit 12d4e12d authored by Romain Courteaud's avatar Romain Courteaud

erp5_no_style: wip

parent 6f381445
......@@ -437,7 +437,7 @@ body {
}
.fdl-landing-background {
background: url("FDL-Website.Background.Image.Chang.Qing?format=") no-repeat center center;
/* background: url("FDL-Website.Background.Image.Chang.Qing?format=") no-repeat center center; */
min-height: 50em;
background-size: cover;
background-color: #fff;
......@@ -1334,11 +1334,11 @@ span:first-of-type .material-icons {
vertical-align: top;
}
}
/*
.rjs-card .mdl-card__title-text {
color: #eff1f3;
}
*/
.rjs-card .mdl-card__title-text {
position: absolute;
}
......
......@@ -107,12 +107,11 @@
}
function handleClick(evt) {
var target_element = evt.target,
target_tag = target_element.tagName,
var target_element = evt.target.closest('a'),
base_uri = document.baseURI,
link_url;
if (target_tag !== 'A') {
if (!target_element) {
// Only handle link
return;
}
......@@ -146,7 +145,7 @@
// to ensure popstate listener is correctly working
// when the user will click on back/forward browser buttons
history.pushState(null, null, target_element.href);
}, function () {
}, function (error) {
// Implement support for managed error
// (like URL is not an HTML document parsable)
// and redirect in such case
......@@ -156,7 +155,7 @@
return RSVP.all([
loopEventListener(window, 'popstate', false, handlePopState, false),
loopEventListener(document.documentElement, 'click', false, handleClick,
loopEventListener(gadget.element, 'click', false, handleClick,
false)
]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment