implement favorite hotkeys
This commit is contained in:
@@ -12,7 +12,13 @@ Location: wtv-favorite:/favorite`
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
var url = request_headers.request;
|
||||
var key = url.split('?')[1]
|
||||
|
||||
headers = `400 You have not assigned a favorite to ${key}`
|
||||
|
||||
var scfav = session_data.favstore.getShortcutKey(key);
|
||||
if (!scfav.id || scfav.id == "none") {
|
||||
headers = `400 You have not assigned a favorite to ${key}`
|
||||
} else {
|
||||
var fav = session_data.favstore.getFavorite(scfav.folder, scfav.id);
|
||||
headers = `300 OK
|
||||
Content-Type: text/html
|
||||
Location: ${fav.url}`
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ Keyboard shortcut list
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="6" absheight="26">
|
||||
</td><td width="100%"><table href="wtv-favorite:/serve-browser?favorite-folder-name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||
</td><td width="100%"><table href="wtv-favorite:/favorite" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
|
||||
Reference in New Issue
Block a user