forked from Business/BinStack
add JS to remove &msg=xyz from URL, update material-color to v1.2
This commit is contained in:
parent
b9f385d6f0
commit
2284117cfc
@ -22,6 +22,9 @@
|
|||||||
Changing the .navbar-inverse background should be enough on modern browsers.
|
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
|
If this app is to be used on IE < 9 (not supported), also set a background-color
|
||||||
to replace the rgba()s.
|
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 */
|
/* navbar background */
|
||||||
|
@ -297,6 +297,9 @@
|
|||||||
NAVBAR
|
NAVBAR
|
||||||
\*****************************************************/
|
\*****************************************************/
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
|
||||||
|
border-color: rgba(0,0,0,.3);
|
||||||
|
}
|
||||||
|
|
||||||
/* red */
|
/* red */
|
||||||
|
|
||||||
|
2
static/css/material-color.min.css
vendored
2
static/css/material-color.min.css
vendored
File diff suppressed because one or more lines are too long
@ -4,4 +4,20 @@ $(document).ready(function () {
|
|||||||
$(".alert .close").click(function (e) {
|
$(".alert .close").click(function (e) {
|
||||||
$(this).parent().fadeOut("slow");
|
$(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…
x
Reference in New Issue
Block a user