mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
Fix some IE rendering/caching issues
This commit is contained in:
@@ -29,6 +29,7 @@ func (c Mailbox) List(name string) rev.Result {
|
|||||||
}
|
}
|
||||||
rev.INFO.Printf("Got %v messsages", len(messages))
|
rev.INFO.Printf("Got %v messsages", len(messages))
|
||||||
|
|
||||||
|
c.Response.Out.Header().Set("Expires", "-1")
|
||||||
return c.Render(name, messages)
|
return c.Render(name, messages)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,6 +54,7 @@ func (c Mailbox) Show(name string, id string) rev.Result {
|
|||||||
return c.Redirect(Application.Index)
|
return c.Redirect(Application.Index)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.Response.Out.Header().Set("Expires", "-1")
|
||||||
return c.Render(name, message, body)
|
return c.Render(name, message, body)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,5 +102,6 @@ func (c Mailbox) Source(name string, id string) rev.Result {
|
|||||||
return c.Redirect(Application.Index)
|
return c.Redirect(Application.Index)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.Response.Out.Header().Set("Expires", "-1")
|
||||||
return c.RenderText(*raw)
|
return c.RenderText(*raw)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reloadList() {
|
function reloadList() {
|
||||||
$('#messageList').slideUp()
|
$('#messageList').hide()
|
||||||
loadList()
|
loadList()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
function messageSource(id) {
|
function messageSource(id) {
|
||||||
window.open('/mailbox/source/{{$name}}/' + id, '_blank',
|
window.open('/mailbox/source/{{$name}}/' + id, '_blank',
|
||||||
'width=800,height=600,' +
|
'width=800,height=600,' +
|
||||||
'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')
|
'menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(listInit)
|
$(document).ready(listInit)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<td>{{.message.Date}}</td>
|
<td>{{.message.Date}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<table>
|
<table>
|
||||||
<h3 id="emailSubject">{{.message.Subject}}</h3>
|
<div id="emailSubject"><h3>{{.message.Subject}}</h3></div>
|
||||||
|
|
||||||
<pre id="emailBody">{{.body}}</pre>
|
<pre id="emailBody">{{.body}}</pre>
|
||||||
|
|
||||||
|
|||||||
@@ -245,45 +245,47 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.listEntry {
|
.listEntry {
|
||||||
color: #909090;
|
color: #909090;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listEntry > .subject {
|
.listEntry > .subject {
|
||||||
color: #2582A4;
|
color: #2582A4;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listEntrySelected {
|
.listEntrySelected {
|
||||||
background: #becf74;
|
background: #becf74;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listEntryHover {
|
.listEntryHover {
|
||||||
background: #8ac6dc;
|
background: #8ac6dc;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailContent {
|
#emailContent {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailHeader {
|
#emailHeader {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailHeader th, #emailHeader td {
|
#emailHeader th, #emailHeader td {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0 3px 3px 0;
|
padding: 0 3px 3px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailSubject {
|
#emailSubject {
|
||||||
border-bottom: 1px #606060 solid;
|
border-bottom: 1px #606060 solid;
|
||||||
|
margin: 0;
|
||||||
|
width: 617px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailBody {
|
#emailBody {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailActions {
|
#emailActions {
|
||||||
@@ -292,13 +294,13 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#emailActions a {
|
#emailActions a {
|
||||||
background: #8ac6dc;
|
background: #8ac6dc;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#emailActions a:hover {
|
#emailActions a:hover {
|
||||||
background: #becf74;
|
background: #becf74;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user