Private GIT

Skip to content
Snippets Groups Projects
Commit 86c1a932 authored by Alexis Tyler's avatar Alexis Tyler
Browse files

Added bootstrap-achor and made history goto displayShow SXEX

parent 0ad15179
Branches
Tags
No related merge requests found
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
......@@ -30,7 +30,6 @@ function initHeader() {
inside = false;
}
});
}
......@@ -59,9 +58,7 @@ function showMsg(msg, loader, timeout, ms) {
}
function resetFilters(text) {
if ($(".dataTables_filter").length > 0) {
$(".dataTables_filter input").attr("placeholder", "filter " + text + "");
}
if ($(".dataTables_filter").length > 0) $(".dataTables_filter input").attr("placeholder", "filter " + text + "");
}
function initTabs() {
......@@ -106,15 +103,10 @@ function initTabs() {
});
}
function init() {
$(document).ready(function () {
initHeader();
initTabs();
}
$(document).ready(function () {
init();
$(document).ready(function() {
$(document).anchor();
$('.dropdown-toggle').dropdownHover();
if(metaToBool('sickbeard.FUZZY_DATING')){
$.timeago.settings.allowFuture = true;
......@@ -140,4 +132,3 @@ $(document).ready(function () {
$("[datetime]").timeago();
}
});
});
......@@ -422,7 +422,7 @@
% endif
<% curSeason = int(epResult["season"]) %>
% endif
<tr class="${Overview.overviewStrings[epCats[epStr]]} season-${curSeason} seasonstyle">
<tr class="${Overview.overviewStrings[epCats[epStr]]} season-${curSeason} seasonstyle" id="${'S' + str(epResult["season"]) + 'E' + str(epResult["episode"])}">
<td class="col-checkbox">
% if int(epResult["status"]) != UNAIRED:
<input type="checkbox" class="epCheck" id="${str(epResult["season"])+'x'+str(epResult["episode"])}" name="${str(epResult["season"]) +"x"+str(epResult["episode"])}" />
......
......@@ -75,7 +75,7 @@
<% isoDate = datetime.datetime.strptime(str(hItem["date"]), History.date_format).isoformat('T') %>
<time datetime="${isoDate}" class="date">${airDate}</time>
</td>
<td class="tvShow" width="35%"><a href="${srRoot}/home/displayShow?show=${hItem["show_id"]}#season-${hItem["season"]}">${hItem["show_name"]} - ${"S%02i" % int(hItem["season"])}${"E%02i" % int(hItem["episode"])} ${('', '<span class="quality Proper">Proper</span>')["proper" in hItem["resource"].lower() or "repack" in hItem["resource"].lower()]}</a></td>
<td class="tvShow" width="35%"><a href="${srRoot}/home/displayShow?show=${hItem["show_id"]}#S${hItem["season"]}E${hItem["episode"]}">${hItem["show_name"]} - ${"S%02i" % int(hItem["season"])}${"E%02i" % int(hItem["episode"])} ${('', '<span class="quality Proper">Proper</span>')["proper" in hItem["resource"].lower() or "repack" in hItem["resource"].lower()]}</a></td>
<td align="center" ${('', 'class="subtitles_column"')[curStatus == SUBTITLED]}>
% if curStatus == SUBTITLED:
<img width="16" height="11" style="vertical-align:middle;" src="${srRoot}/images/subtitles/flags/${hItem['resource']}.png" onError="this.onerror=null;this.src='${srRoot}/images/flags/unknown.png';">
......
......@@ -91,6 +91,15 @@
<link rel="stylesheet" type="text/css" href="${srRoot}/css/lib/pnotify.custom.min.css?${sbPID}" />
<link rel="stylesheet" type="text/css" href="${srRoot}/css/country-flags.css?${sbPID}"/>
% endif
<style>
*[id]:before {
display: block;
content: " ";
margin-top: -60px;
height: 60px;
visibility: hidden;
}
</style>
<%block name="css" />
</head>
......@@ -342,6 +351,7 @@
<script type="text/javascript" src="${srRoot}/js/lib/jquery-2.1.4.min.js?${sbPID}"></script>
<script type="text/javascript" src="${srRoot}/js/lib/bootstrap.min.js?${sbPID}"></script>
<script type="text/javascript" src="${srRoot}/js/lib/bootstrap-hover-dropdown.min.js?${sbPID}"></script>
<script type="text/javascript" src="${srRoot}/js/lib/bootstrap-anchor.min.js?${sbPID}"></script>
<script type="text/javascript" src="${srRoot}/js/lib/jquery-ui-1.10.4.custom.min.js?${sbPID}"></script>
<script type="text/javascript" src="${srRoot}/js/lib/jquery.cookie.js?${sbPID}"></script>
<script type="text/javascript" src="${srRoot}/js/lib/jquery.cookiejar.js?${sbPID}"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment