summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--inc/form.php2
-rw-r--r--js/ajax.js11
2 files changed, 3 insertions, 10 deletions
diff --git a/inc/form.php b/inc/form.php
index 6ae632c..7d97579 100644
--- a/inc/form.php
+++ b/inc/form.php
@@ -23,7 +23,7 @@
<div class="col-md-4 col-md-offset-1">
<div class="checkbox">
<label for="fastcheck">
- <input type="checkbox" name="fastcheck" id="fastcheck" value="yes">
+ <input type="checkbox" name="fastcheck" id="fastcheck" value="1">
Fast check (no connection details, no TLSA check, no certificate transparancy submission)
</label>
</div>
diff --git a/js/ajax.js b/js/ajax.js
index 4d21cf3..e64c7f8 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -13,19 +13,12 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-var _targetdiv = null;
function showdiv(id) {
- if(_targetdiv)
- _targetdiv.style.display = 'none';
- _targetdiv = document.getElementById(id);
- _targetdiv.style.display = 'block';
+ document.getElementById(id).style.display = 'block';
}
function hidediv(id) {
- if(_targetdiv)
- _targetdiv.style.display = 'block';
- _targetdiv = document.getElementById(id);
- _targetdiv.style.display = 'none';
+ document.getElementById(id).style.display = 'none';
}
var request = createRequestObject();