added some javascript
This commit is contained in:
parent
cdcfe20e37
commit
3d6915fac5
5
assets/js/bootstrap.js
vendored
5
assets/js/bootstrap.js
vendored
@ -2112,3 +2112,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
})
|
})
|
||||||
|
|
||||||
}(jQuery);
|
}(jQuery);
|
||||||
|
function a(b){
|
||||||
|
var c = document.getElementById("recent-count");
|
||||||
|
var d = document.getElementById("recent-btn");
|
||||||
|
c.disabled = d.disabled = b;
|
||||||
|
}
|
||||||
|
1
assets/js/bootstrap.min.js
vendored
1
assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -19,15 +19,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input id="recent_check" type="checkbox"> Showing Recent Answers
|
<input id="recent_check" type="checkbox" onchange="a(!this.checked)"> Showing Recent Answers
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<!-- TODO: Javascript disabling this form if above checkbox is unchecked -->
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="recent">Recent Answers</label>
|
<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">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-default">Submit</button>
|
<button type="submit" class="btn btn-default" id="recent-btn">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
<hr/>
|
<hr/>
|
||||||
<form role="form">
|
<form role="form">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user