Skip to content

Commit

Permalink
Escape the sorting from directory
Browse files Browse the repository at this point in the history
So it does not break when sorting is applied
  • Loading branch information
Tampa authored Jun 25, 2019
1 parent 2fa84b5 commit 1a9e810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/themes/bootstrap/js/directorylister.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(document).ready(function() {

//Grabbing the url bits from the location, messy, but works
var currentdir = window.location.href.split("=")[1];
var currentdir = window.location.href.split("=")[1].split("&by")[0];
var basedir = window.location.href.split("/")[3];
var server = window.location.href.split("/")[2];
var file = "http://" + server + "/" + basedir + "/" + currentdir + "/" + ".desc";
Expand Down

0 comments on commit 1a9e810

Please sign in to comment.