[hot] roles cache boo-boo and mobile styles

This commit is contained in:
Rushabh Mehta 2015-05-15 12:43:55 +05:30
parent 0e3d5dfaca
commit a12e1b02ae
3 changed files with 21 additions and 10 deletions

View file

@ -152,9 +152,6 @@ body {
.form-page .form-control:focus {
box-shadow: none;
}
.form-page select.form-control {
text-indent: -2px;
}
.timeline {
border-left: none !important;
border-right: none !important;
@ -203,7 +200,13 @@ body {
width: 100%;
}
.doclist-row .list-row-right.no-right-column .list-row-indicator {
top: 0;
top: 5;
}
.doclist-row .list-row-right.no-right-column .list-row-indicator .indicator::before,
.doclist-row .list-row-right.no-right-column .list-row-indicator .indicator::after {
height: 14px;
width: 14px;
border-radius: 13px;
}
body[data-route^="messages"] .navbar-center {
display: block !important;

View file

@ -131,9 +131,9 @@
box-shadow: none;
}
select.form-control {
text-indent: -2px;
}
// select.form-control {
// text-indent: -2px;
// }
}
// timeline
@ -197,7 +197,15 @@
width: 100%;
.list-row-indicator {
top: 0;
top: 5;
// bigger indicators for list
.indicator::before, .indicator::after {
height: 14px;
width: 14px;
border-radius: 13px;
}
}
}
}

View file

@ -31,7 +31,7 @@ def clear_cache(user=None):
cache = frappe.cache()
groups = ("bootinfo", "user_recent", "user_roles", "user_doc", "lang",
"time_zone", "defaults", "user_permissions")
"time_zone", "defaults", "user_permissions", "roles")
if user:
for name in groups:
@ -223,7 +223,7 @@ class Session:
session_data.get("last_updated"))
expiry = self.get_expiry_in_seconds(session_data.get("session_expiry"))
frappe.session.user = None
if self.time_diff > expiry:
self.delete_session()
data = None