updated manual links from UI

This commit is contained in:
Robbt 2019-04-24 20:50:11 -04:00
parent 0abb1679b5
commit dc161c4741
1 changed files with 5 additions and 6 deletions
airtime_mvc/public/js/airtime/library

View File

@ -94,7 +94,6 @@ var AIRTIME = (function(AIRTIME) {
PODCAST : "podcast", PODCAST : "podcast",
}); });
// TODO: once the new manual pages are added, change links!
mod.placeholder = function(mediaType) { mod.placeholder = function(mediaType) {
switch (mediaType) { switch (mediaType) {
// TODO: remove duplication in a nice way? // TODO: remove duplication in a nice way?
@ -103,35 +102,35 @@ var AIRTIME = (function(AIRTIME) {
"media": "tracks", "media": "tracks",
"icon": "icon-music", "icon": "icon-music",
"subtext": "Click 'Upload' to add some now.", "subtext": "Click 'Upload' to add some now.",
"href": "http://libretime.org/manual/add-media/" "href": "http://libretime.org/manual/upload/"
}; };
case mod.MediaTypeIntegerEnum.PLAYLIST: case mod.MediaTypeIntegerEnum.PLAYLIST:
return { return {
"media": "playlists", "media": "playlists",
"icon": "icon-list", "icon": "icon-list",
"subtext": "Click 'New' to create one now.", "subtext": "Click 'New' to create one now.",
"href": "http://libretime.org/manual/library/" "href": "http://libretime.org/manual/playlist/"
}; };
case mod.MediaTypeIntegerEnum.BLOCK: case mod.MediaTypeIntegerEnum.BLOCK:
return { return {
"media": "smart blocks", "media": "smart blocks",
"icon": "icon-time", "icon": "icon-time",
"subtext": "Click 'New' to create one now.", "subtext": "Click 'New' to create one now.",
"href": "http://libretime.org/manual/library/" "href": "http://libretime.org/manual/smartblocks/"
}; };
case mod.MediaTypeIntegerEnum.WEBSTREAM: case mod.MediaTypeIntegerEnum.WEBSTREAM:
return { return {
"media": "webstreams", "media": "webstreams",
"icon": "icon-random", "icon": "icon-random",
"subtext": "Click 'New' to create one now.", "subtext": "Click 'New' to create one now.",
"href": "http://libretime.org/manual/library/" "href": "http://libretime.org/manual/webstreams/"
}; };
case mod.MediaTypeIntegerEnum.PODCAST: case mod.MediaTypeIntegerEnum.PODCAST:
return { return {
"media": "podcasts", "media": "podcasts",
"icon": "icon-headphones", "icon": "icon-headphones",
"subtext": "Click 'Add' to create one now.", "subtext": "Click 'Add' to create one now.",
"href": "http://www.apple.com/ca/itunes/podcasts/fanfaq.html" "href": "http://libretime.org/manual/podcasts"
}; };
default: default:
break; break;