Browse Source

Some Config functions were broken due to interface refactor

pull/1920/head
Safihre 4 years ago
parent
commit
7bc0a6d140
  1. 1
      interfaces/Config/templates/config_folders.tmpl
  2. 3
      interfaces/Config/templates/config_general.tmpl
  3. 1
      interfaces/Config/templates/config_notify.tmpl
  4. 4
      interfaces/Config/templates/config_server.tmpl
  5. 1
      interfaces/Config/templates/config_switches.tmpl

1
interfaces/Config/templates/config_folders.tmpl

@ -10,6 +10,7 @@
</div>
<form action="saveDirectories" method="post" name="fullform" class="fullform" autocomplete="off">
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
<input type="hidden" name="output" value="json" />
<input type="hidden" id="ajax" name="ajax" value="1" />
<div class="section">
<div class="col2">

3
interfaces/Config/templates/config_general.tmpl

@ -10,7 +10,8 @@
</div>
<form action="saveGeneral" method="post" name="fullform" class="fullform" autocomplete="off">
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
<input type="hidden" id="ajax" name="ajax" value=1 />
<input type="hidden" id="ajax" name="ajax" value="1" />
<input type="hidden" name="output" value="json" />
<div class="section">
<div class="col2">
<h3>$T('webServer') <a href="$helpuri$help_uri" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>

1
interfaces/Config/templates/config_notify.tmpl

@ -28,6 +28,7 @@
<div class="colmask">
<form action="saveNotify" method="post" name="fullform" class="fullform" autocomplete="off">
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
<input type="hidden" name="output" value="json" />
<input type="hidden" id="ajax" name="ajax" value="1" />
<div class="section" id="email">
<div class="col2">

4
interfaces/Config/templates/config_server.tmpl

@ -34,6 +34,7 @@
<div class="col1">
<form action="addServer" method="post" autocomplete="off" onsubmit="removeObfuscation();">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="output" value="json" />
<fieldset>
<div class="field-pair">
<label class="config" for="enable">$T('srv-enable')</label>
@ -139,6 +140,7 @@
<!--#for $cur, $server in enumerate($servers) #-->
<form action="saveServer" method="post" class="fullform" autocomplete="off">
<input type="hidden" name="apikey" value="$apikey" />
<input type="hidden" name="output" value="json" />
<input type="hidden" name="server" value="$server['name']" />
<input type="hidden" id="ajax" name="ajax" value=1 />
@ -522,7 +524,7 @@
\$.ajax({
type: "POST",
url: "../../api",
data: "mode=config&output=json&name=test_server&" + \$(this).parents('form:first').serialize()
data: "mode=config&name=test_server&" + \$(this).parents('form:first').serialize()
}).then(function(data) {
// Let's replace the link
msg = data.value.message.replace('https://sabnzbd.org/certificate-errors', '<a href="https://sabnzbd.org/certificate-errors" class="alert-link" target="_blank">https://sabnzbd.org/certificate-errors</a>')

1
interfaces/Config/templates/config_switches.tmpl

@ -11,6 +11,7 @@
<form action="saveSwitches" method="post" name="fullform" class="fullform" autocomplete="off">
<input type="hidden" id="apikey" name="apikey" value="$apikey" />
<input type="hidden" id="ajax" name="ajax" value="1" />
<input type="hidden" name="output" value="json" />
<div class="section advanced-settings">
<div class="col2">
<h3>$T('swtag-server') <a href="$helpuri$help_uri#toc1" target="_blank"><span class="glyphicon glyphicon-question-sign"></span></a></h3>

Loading…
Cancel
Save