mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
show admin link in header if user is admin, closes #459
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user