Root Dir cleanup

This commit is contained in:
kay.one
2011-06-29 23:15:06 -07:00
parent 07312780f1
commit cece6e9bf6
10 changed files with 144 additions and 59 deletions
+17 -16
View File
@@ -99,7 +99,23 @@ Series
@section Scripts{
<script type="text/javascript">
var windowElement;
(function ($) {
$.fn.episodeProgress = function (episodes, totalEpisodes) {
return this.each(
function () {
var div = $(this);
var progressBar = div.find(".progress");
var width = Math.round(episodes / totalEpisodes * 100);
progressBar.css("width", width + "%");
div.find(".progressText").html(episodes + " / " + totalEpisodes);
});
};
})(jQuery);
function grid_edit(args) {
$(args.form)
.closest(".t-window")
@@ -146,22 +162,7 @@ Series
$("#progressbar_" + seriesId).episodeProgress(episodeFileCount, episodeCount);
}
</script>
<script type="text/javascript" src="../../Scripts/doTimeout.js"></script>
<script type="text/javascript">
(function ($) {
$.fn.episodeProgress = function (episodes, totalEpisodes) {
return this.each(
function () {
var div = $(this);
var progressBar = div.find(".progress");
var width = Math.round(episodes / totalEpisodes * 100);
progressBar.css("width", width + "%");
div.find(".progressText").html(episodes + " / " + totalEpisodes);
});
};
})(jQuery);
</script>
}