Commit 3d6915fa authored by Jyrki's avatar Jyrki 🐾
Browse files

added some javascript

parent cdcfe20e
......@@ -2112,3 +2112,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
function a(b){
var c = document.getElementById("recent-count");
var d = document.getElementById("recent-btn");
c.disabled = d.disabled = b;
This diff is collapsed.
......@@ -19,15 +19,14 @@
<div class="checkbox">
<input id="recent_check" type="checkbox"> Showing Recent Answers
<input id="recent_check" type="checkbox" onchange="a(!this.checked)"> Showing Recent Answers
<!-- TODO: Javascript disabling this form if above checkbox is unchecked -->
<div class="form-group">
<label for="recent">Recent Answers</label>
<input type="number" class="form-control" id="recent_count" value="5" disabled>
<input type="number" class="form-control" id="recent-count" name="recent_count" value="5">
<button type="submit" class="btn btn-default">Submit</button>
<button type="submit" class="btn btn-default" id="recent-btn">Submit</button>
<form role="form">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment