Browse Source

Fix Clicking on iCal Calendar Item Locks Up GUI (#1092)

causefx 7 years ago
parent
commit
0191331445

+ 9 - 9
api/functions/homepage-connect-functions.php

@@ -1251,7 +1251,7 @@ function getSonarrCalendar($array, $number)
 			"id" => "Sonarr-" . $number . "-" . $i,
 			"title" => $seriesName,
 			"start" => $child['airDateUtc'],
-			"className" => "bg-calendar calendar-item tvID--" . $episodeID,
+			"className" => "inline-popups bg-calendar calendar-item tvID--" . $episodeID,
 			"imagetype" => "tv " . $downloaded,
 			"imagetypeFilter" => "tv",
 			"downloadFilter" => $downloaded,
@@ -1315,7 +1315,7 @@ function getLidarrCalendar($array, $number)
 			"id" => "Lidarr-" . $number . "-" . $i,
 			"title" => $artistName,
 			"start" => $child['releaseDate'],
-			"className" => "bg-calendar calendar-item musicID--",
+			"className" => "inline-popups bg-calendar calendar-item musicID--",
 			"imagetype" => "music " . $downloaded,
 			"imagetypeFilter" => "music",
 			"downloadFilter" => $downloaded,
@@ -1409,7 +1409,7 @@ function getRadarrCalendar($array, $number, $url)
 				"id" => "Radarr-" . $number . "-" . $i,
 				"title" => $movieName,
 				"start" => $physicalRelease,
-				"className" => "bg-calendar movieID--" . $movieID,
+				"className" => "inline-popups bg-calendar movieID--" . $movieID,
 				"imagetype" => "film " . $downloaded,
 				"imagetypeFilter" => "film",
 				"downloadFilter" => $downloaded,
@@ -1494,7 +1494,7 @@ function getCouchCalendar($array, $number)
 				"id" => "CouchPotato-" . $number . "-" . $i,
 				"title" => $movieName,
 				"start" => $physicalRelease,
-				"className" => "bg-calendar calendar-item movieID--" . $movieID,
+				"className" => "inline-popups bg-calendar calendar-item movieID--" . $movieID,
 				"imagetype" => "film " . $downloaded,
 				"imagetypeFilter" => "film",
 				"downloadFilter" => $downloaded,
@@ -1563,7 +1563,7 @@ function getSickrageCalendarWanted($array, $number)
 			"id" => "Sick-" . $number . "-Miss-" . $i,
 			"title" => $seriesName,
 			"start" => $episodeAirDate,
-			"className" => "bg-calendar calendar-item tvID--" . $episodeID,
+			"className" => "inline-popups bg-calendar calendar-item tvID--" . $episodeID,
 			"imagetype" => "tv " . $downloaded,
 			"imagetypeFilter" => "tv",
 			"downloadFilter" => $downloaded,
@@ -1620,7 +1620,7 @@ function getSickrageCalendarWanted($array, $number)
 			"id" => "Sick-" . $number . "-Today-" . $i,
 			"title" => $seriesName,
 			"start" => $episodeAirDate,
-			"className" => "bg-calendar calendar-item tvID--" . $episodeID,
+			"className" => "inline-popups bg-calendar calendar-item tvID--" . $episodeID,
 			"imagetype" => "tv " . $downloaded,
 			"imagetypeFilter" => "tv",
 			"downloadFilter" => $downloaded,
@@ -1677,7 +1677,7 @@ function getSickrageCalendarWanted($array, $number)
 			"id" => "Sick-" . $number . "-Soon-" . $i,
 			"title" => $seriesName,
 			"start" => $episodeAirDate,
-			"className" => "bg-calendar calendar-item tvID--" . $episodeID,
+			"className" => "inline-popups bg-calendar calendar-item tvID--" . $episodeID,
 			"imagetype" => "tv " . $downloaded,
 			"imagetypeFilter" => "tv",
 			"downloadFilter" => $downloaded,
@@ -1734,7 +1734,7 @@ function getSickrageCalendarWanted($array, $number)
 			"id" => "Sick-" . $number . "-Later-" . $i,
 			"title" => $seriesName,
 			"start" => $episodeAirDate,
-			"className" => "bg-calendar calendar-item tvID--" . $episodeID,
+			"className" => "inline-popups bg-calendar calendar-item tvID--" . $episodeID,
 			"imagetype" => "tv " . $downloaded,
 			"imagetypeFilter" => "tv",
 			"downloadFilter" => $downloaded,
@@ -1788,7 +1788,7 @@ function getSickrageCalendarHistory($array, $number)
 			"id" => "Sick-" . $number . "-History-" . $i,
 			"title" => $seriesName,
 			"start" => $episodeAirDate,
-			"className" => "bg-calendar calendar-item tvID--" . $episodeID,
+			"className" => "inline-popups bg-calendar calendar-item tvID--" . $episodeID,
 			"imagetype" => "tv " . $downloaded,
 			"imagetypeFilter" => "tv",
 			"downloadFilter" => $downloaded,

+ 2 - 2
plugins/bower_components/calendar/dist/fullcalendar.js

@@ -6696,7 +6696,7 @@ DayGrid.mixin({
 				(htmlEscape(event.imagetype || '') || ' ') + // we always want one line of height
 			'"></i></span>';
 
-		return '<a class="inline-popups ' + classes.join(' ') + '"' +
+		return '<a class=" ' + classes.join(' ') + '"' +
 				(event.id ?
 					' data-effect="mfp-zoom-out" data-target="'+ htmlEscape(event.id) +'" data-details="'+htmlEscape(detailsJSON) +'" data-mfp-src="#' + htmlEscape(event.id) + '"' :
 					''
@@ -14571,7 +14571,7 @@ var ListViewGrid = Grid.extend({
 				(htmlEscape(event.imagetype || '') || '&nbsp;') + // we always want one line of height
 			'"></i></span>';
 
-		return '<a class="inline-popups ' + classes.join(' ') + '"' +
+		return '<a class=" ' + classes.join(' ') + '"' +
 				(event.id ?
 					' data-effect="mfp-zoom-out" data-target="'+ htmlEscape(event.id) +'" data-details="'+htmlEscape(detailsJSON) +'" data-mfp-src="#' + htmlEscape(event.id) + '"' :
 					''