-
@@ -638,7 +638,7 @@
settings_general_ip : ['regExp[/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/]', 'empty'],
settings_general_port : ['integer[1..65535]', 'empty'],
- settings_sonarr_ip : ['regExp[/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/]', 'empty'],
+ settings_sonarr_ip : ['empty'],
settings_sonarr_port : ['integer[1..65535]', 'empty'],
settings_sonarr_apikey : ['exactLength[32]', 'empty'],
From 103257ffe4896f34a7cf3ab0cc07ef03be4abdcc Mon Sep 17 00:00:00 2001
From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com>
Date: Mon, 12 Mar 2018 16:44:29 -0400
Subject: [PATCH 3/5] Correction to previous commit
---
views/settings.tpl | 1 +
1 file changed, 1 insertion(+)
diff --git a/views/settings.tpl b/views/settings.tpl
index 401c16468..2ff7871fb 100644
--- a/views/settings.tpl
+++ b/views/settings.tpl
@@ -682,5 +682,6 @@
$('#settings_form').focusout(function() {
$('.form').form('validate form');
+ $('#loader').removeClass('active');
})
\ No newline at end of file
From adc784718ded2dc5282985c64b1a80b210ca5873 Mon Sep 17 00:00:00 2001
From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com>
Date: Mon, 12 Mar 2018 21:53:45 -0400
Subject: [PATCH 4/5] Unwanted page reload when doing an ajax call using the
search bar
---
views/episodes.tpl | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
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({
From 958eacad8ef99813230d547ca13ccbc8de85b913 Mon Sep 17 00:00:00 2001
From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com>
Date: Mon, 12 Mar 2018 21:54:37 -0400
Subject: [PATCH 5/5] Version bump
---
bazarr.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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