add JS to remove &msg=xyz from URL, update material-color to v1.2

master
Skylar Ittner 7 years ago
parent b9f385d6f0
commit 2284117cfc

@ -22,6 +22,9 @@
Changing the .navbar-inverse background should be enough on modern browsers.
If this app is to be used on IE < 9 (not supported), also set a background-color
to replace the rgba()s.
To use a material-color.css navbar theme, remove all the theming styles in this
file and add a .navbar-[color] class to the navbar in app.php.
*/
/* navbar background */

@ -297,6 +297,9 @@
NAVBAR
\*****************************************************/
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
border-color: rgba(0,0,0,.3);
}
/* red */

File diff suppressed because one or more lines are too long

@ -4,4 +4,20 @@ $(document).ready(function () {
$(".alert .close").click(function (e) {
$(this).parent().fadeOut("slow");
});
});
});
/*
* Remove feedback params from the URL so they don't stick around too long
*/
function getniceurl() {
var url = window.location.search;
url = url.substring(url.lastIndexOf("/") + 1);
url = url.replace(/&?msg=([^&]$|[^&]*)/i, "");
return url;
}
try {
window.history.replaceState("", "", getniceurl());
} catch (ex) {
}
Loading…
Cancel
Save