show admin link in header if user is admin, closes #459

This commit is contained in:
Baris Usakli
2013-10-28 15:49:12 -04:00
parent 51a9bd9e56
commit 12f3f1a45c
4 changed files with 22 additions and 5 deletions

View File

@@ -23,7 +23,8 @@ var ajaxify = {};
window.onpopstate = function (event) {
// "quiet": If set to true, will not call pushState
if (event !== null && event.state && event.state.url !== undefined) ajaxify.go(event.state.url, null, null, true);
if (event !== null && event.state && event.state.url !== undefined)
ajaxify.go(event.state.url, null, null, true);
};
var pagination;
@@ -123,7 +124,7 @@ var ajaxify = {};
if (this.getAttribute('data-ajaxify') == 'false') {
return;
}
if (!e.ctrlKey && e.which === 1) {
if (this.host === window.location.host) {
// Internal link