-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
298d784
commit ffb20f1
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"use strict"; | ||
/* myMPD | ||
(c) 2018 Juergen Mang <[email protected]> | ||
This project's homepage is: https://github.com/jcorporation/mympd | ||
|
@@ -136,6 +137,7 @@ function appGoto(a,t,v,s) { | |
|
||
function appRoute() { | ||
var hash = decodeURI(location.hash); | ||
var params; | ||
if (params = hash.match(/^\#\/(\w+)\/?(\w+)?\/?(\w+)?\!((\d+)\/([^\/]+)\/(.*))$/)) { | ||
app.current.app = params[1]; | ||
app.current.tab = params[2]; | ||
|
@@ -1532,7 +1534,7 @@ function doSetFilterLetter(x) { | |
function addFilterLetter(x) { | ||
var filter = '<button class="mr-1 mb-1 btn btn-sm btn-secondary material-icons material-icons-small">delete</button>' + | ||
'<button class="mr-1 mb-1 btn btn-sm btn-secondary">#</button>'; | ||
for (i = 65; i <= 90; i++) { | ||
for (var i = 65; i <= 90; i++) { | ||
filter += '<button class="mr-1 mb-1 btn-sm btn btn-secondary">' + String.fromCharCode(i) + '</button>'; | ||
} | ||
var letters = document.getElementById(x); | ||
|