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 @@ - +
@@ -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")); }); + %def> 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 @@