diff --git a/bazarr.py b/bazarr.py index 14f2ca315..9f410e769 100644 --- a/bazarr.py +++ b/bazarr.py @@ -1,4 +1,4 @@ -bazarr_version = '0.3.5' +bazarr_version = '0.3.6' import os import sys diff --git a/views/episodes.tpl b/views/episodes.tpl index 969c02bbb..1bbe06465 100644 --- a/views/episodes.tpl +++ b/views/episodes.tpl @@ -70,10 +70,6 @@ var first_season_acc_content = document.getElementsByClassName("content")[0]; first_season_acc_content.className += " active"; }); - - $(window).on('beforeunload',function(){ - $('#loader').addClass('active'); - }); @@ -288,7 +284,12 @@ dataType: "json", data: values }); - $('#loader').addClass('active'); + $(document).ajaxStart(function(){ + $('#loader').addClass('active'); + }); + $(document).ajaxStop(function(){ + window.location.reload(); + }); }) $('.get_subtitle').click(function(){ @@ -307,12 +308,17 @@ dataType: "json", data: values }); - $('#loader').addClass('active'); + $(document).ajaxStart(function(){ + $('#loader').addClass('active'); + }); + $(document).ajaxStop(function(){ + window.location.reload(); + }); }) - $(document).ajaxStop(function(){ - window.location.reload(); - }); + $('a, i').click(function(){ + $('#loader').addClass('active'); + }) $('.modal') .modal({ diff --git a/views/settings.tpl b/views/settings.tpl index 80d235927..2ff7871fb 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -282,7 +282,7 @@
- +
@@ -292,7 +292,7 @@