@@ -0,0 +1,10 @@ | |||||
$(function() { | |||||
// Install logout auto-POST form: | |||||
$("#logout").click(function() { | |||||
$("<form>", { | |||||
"action": this.href, | |||||
"method": "post" | |||||
}).appendTo($("body")).submit(); | |||||
return false; | |||||
}); | |||||
}); |
@@ -19,6 +19,8 @@ | |||||
% for size in g.eve.image.corp_widths: | % for size in g.eve.image.corp_widths: | ||||
<link rel="icon" type="image/png" sizes="${size}x${size}" href="${g.eve.image.corp(g.config.get('corp.id'), size)}"/> | <link rel="icon" type="image/png" sizes="${size}x${size}" href="${g.eve.image.corp(g.config.get('corp.id'), size)}"/> | ||||
% endfor | % endfor | ||||
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> | |||||
<script src="${url_for('staticv', filename='main.js')}"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<%block name="header"> | <%block name="header"> | ||||
@@ -9,8 +9,7 @@ | |||||
<img id="character-portrait" class="aligned" title="${g.auth.get_character_prop('name')}" alt="" src="${g.eve.image.character(g.auth.get_character_id(), 256)}"/> | <img id="character-portrait" class="aligned" title="${g.auth.get_character_prop('name')}" alt="" src="${g.eve.image.character(g.auth.get_character_id(), 256)}"/> | ||||
<span id="character-summary" class="aligned"> | <span id="character-summary" class="aligned"> | ||||
${g.auth.get_character_prop("name")} | ${g.auth.get_character_prop("name")} | ||||
<span class="sep">[</span><a title="Log out" href="${url_for('logout')}">logout</a><span class="sep">]</span> | |||||
<!-- ... JS switch to a POST form --> | |||||
<span class="sep">[</span><a id="logout" title="Log out" href="${url_for('logout')}">log out</a><span class="sep">]</span> | |||||
</span> | </span> | ||||
</%block> | </%block> | ||||
${next.body()} | ${next.body()} |