mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-07-13 23:44:37 +00:00
Application improvements
* Change favicon * Display account banned status on admin search * Pull in application version from Webpack * Add "Feedback" button in footer and github references * Fix faction icons to make them the same size * PaginatedList component now supports back * Tabbed navs support back * Hide Pagination when only one page * Improve admin table style and size
This commit is contained in:
parent
817796e181
commit
fa6e168ccc
23 changed files with 244 additions and 158 deletions
19
app/util/navigation.js
Normal file
19
app/util/navigation.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import jq from 'jquery'
|
||||
|
||||
export function monitor_tabs(callback) {
|
||||
jq('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
var hash = jq(e.target).attr('href');
|
||||
if (callback)
|
||||
callback(hash);
|
||||
if (history.pushState) {
|
||||
history.replaceState(null, null, hash);
|
||||
} else {
|
||||
location.hash = hash;
|
||||
}
|
||||
});
|
||||
|
||||
var hash = window.location.hash;
|
||||
if (hash) {
|
||||
jq('.nav-link[href="' + hash + '"]').tab('show');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue