Anpassungen fuer coloradio

This commit is contained in:
root
2020-07-22 18:25:28 +02:00
parent bdf572956f
commit 509535fbf8
66 changed files with 3121 additions and 141 deletions

View File

@@ -414,15 +414,15 @@ var calcms_settings = new Array();
initCalcms();
//initWordpress();
//addCommentsOnAgendaPages();
calcms.showPlaylist();
//calcms.showPlaylist();
calcms.showNewestComments();
// insertDeskDetails();
// fixBlogEntries();
calcms.removeCurrentPlayingHeader();
// setImageSize();
// setThumbs();
// scrollNextEvent();
//initSlider();
scrollNextEvent();
// initSlider();
// mobilise();
initSearch();
console.log("calcms inited")

View File

@@ -408,7 +408,7 @@ var calcms = (function($) {
if (value != null && value != '') {
var url = my.get('search_url');
if (project != '' && project != null)
url += escape(project) + '/';
url += escape(encodeURI(project)) + '/';
else
url += 'all/';
if (value != '' && value != null)
@@ -452,9 +452,26 @@ var calcms = (function($) {
if (seriesName != '' && seriesName != null) {
var url = my.get('search_series_name_url');
if (project != '' && project != null)
{
project = project.replace(/'/g, ' ');
url += escape(project) + '/';
}
if (seriesName != '' && seriesName != null)
{
// send series name to url fragment
if(history.pushState)
{
history.pushState(null, 'Serie: '+seriesName, 'https://programm.coloradio.org/agenda/#seriesName+'+seriesName);
}
else
{
location.hash = '#seriesName+'+seriesName;
}
// escape apostrophe in show titles
seriesName = seriesName.replace(/'/g, ' ');;
url += encodeURI(escape(seriesName)) + '/';
}
if (archive != null && archive == 0)
url += 'kommende/';
if (archive != null && archive == 1)

File diff suppressed because one or more lines are too long