From 98548fbff7ecb0971d1a8ba796c836703b8e523d Mon Sep 17 00:00:00 2001 From: rembo10 Date: Tue, 27 Mar 2012 15:58:20 +0100 Subject: [PATCH] Updated brink & remix to include api settings --- data/interfaces/brink/config.html | 45 +++++++++++++++++++++-- data/interfaces/remix/config.html | 59 ++++++++++++++++++++++++++----- 2 files changed, 93 insertions(+), 11 deletions(-) diff --git a/data/interfaces/brink/config.html b/data/interfaces/brink/config.html index 1da3bbfa..6cf9f8af 100644 --- a/data/interfaces/brink/config.html +++ b/data/interfaces/brink/config.html @@ -43,7 +43,7 @@ - +

HTTP Password:

@@ -51,6 +51,15 @@

+ + +

Enable API:

+
+
+

API key:



+
+ +

@@ -671,6 +680,37 @@ $(document).ready(function() { + if ($("#api_enabled").is(":checked")) + { + $("#apioptions").show(); + } + else + { + $("#apioptions").hide(); + } + + $("#api_enabled").click(function(){ + if ($("#api_enabled").is(":checked")) + { + $("#apioptions").show("fast"); + } + else + { + $("#apioptions").hide("fast"); + } + }); + + $('#api_key').click(function(){ $('#api_key').select() }); + $("#generate_api").click(function(){ + $.get('generateAPI', + function(data){ + if (data.error != undefined) { + alert(data.error); + return; + } + $('#api_key').val(data); + }); + }); if ($("#encode").is(":checked")) { $("#encoderoptions").show(); @@ -679,7 +719,7 @@ { $("#encoderoptions").hide(); } - + $("#encode").click(function(){ if ($("#encode").is(":checked")) { @@ -735,5 +775,6 @@ handleNewSelection.apply($("#mirror")); }); + diff --git a/data/interfaces/remix/config.html b/data/interfaces/remix/config.html index d57ca0ed..b947346e 100644 --- a/data/interfaces/remix/config.html +++ b/data/interfaces/remix/config.html @@ -48,23 +48,33 @@

Launch Browser on Startup:

+ + -

Download Scan Interval (mins):

- +

Enable API:

+
+
+

API key:



+
- -

NZB Search Interval (mins):

- +

NZB Search Interval:

+ mins - + + -

Library Scan Interval (mins):

- +

Download Scan Interval:

+ mins + + + + +

Library Scan Interval:

+ mins - @@ -516,6 +526,37 @@ $(document).ready(function() { + if ($("#api_enabled").is(":checked")) + { + $("#apioptions").show(); + } + else + { + $("#apioptions").hide(); + } + + $("#api_enabled").click(function(){ + if ($("#api_enabled").is(":checked")) + { + $("#apioptions").show("fast"); + } + else + { + $("#apioptions").hide("fast"); + } + }); + + $('#api_key').click(function(){ $('#api_key').select() }); + $("#generate_api").click(function(){ + $.get('generateAPI', + function(data){ + if (data.error != undefined) { + alert(data.error); + return; + } + $('#api_key').val(data); + }); + }); if ($("#encode").is(":checked")) { $("#encoderoptions").show();