mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-24 06:20:07 +01:00
Single source of truth for current location.
This commit is contained in:
parent
17c31fc9d9
commit
1828855f63
@ -1,12 +1,11 @@
|
||||
|
||||
modulejs.define('core/entry', ['$', 'core/parser', 'model/entry'], function ($, parser, Entry) {
|
||||
|
||||
var absHref = document.location.href.replace(/^.*:\/\/[^\/]*/, '').replace(/[^\/]*$/, '');
|
||||
var entry = Entry.get();
|
||||
|
||||
parser.parse(absHref, $('body'));
|
||||
parser.parse(entry.absHref, $('body'));
|
||||
$('#data-apache-autoindex').remove();
|
||||
|
||||
var entry = Entry.get(absHref);
|
||||
entry.status = 'h5ai';
|
||||
if (entry.parent) {
|
||||
entry.parent.isParentFolder = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user