Permalink
Browse files

added a reset button

  • Loading branch information...
1 parent 4dd842e commit fe0677fe43bf2e9d364a8315fe61b6e1abcf268d @xianhuazhou committed Dec 31, 2012
Showing with 10 additions and 1 deletion.
  1. +4 −0 views/css/elog.css
  2. +5 −0 views/js/elog.js
  3. +1 −1 views/layout.ejs
View
@@ -9,6 +9,10 @@ input {
input.button {
width: 110px;
}
+input#reset {
+ width: 50px;
+ color: #223322;
+}
form {
margin: auto;
View
@@ -33,4 +33,9 @@ $(function() {
e.preventDefault();
$('#filterForm').attr('action', '/toplogs').submit();
});
+
+ $('#reset').click(function(e){
+ e.preventDefault();
+ window.location.href = '/';
+ });
});
View
@@ -28,8 +28,8 @@
<input type="text" name="endDate" value="<%= currentEndDate %>" placeholder="end date/time" title="Format: xxxx-xx-xx or xxxx-xx-xx hh:ss:mm">
,
<input type="submit" value="Filter Logs" class="button" id="btnFilterLogs">
- or
<input type="submit" value="Filter Top Logs" class="button" id="btnFilterTopLogs">
+ <input type="button" value="Reset" id="reset">
</form>
<%- body %>
<div id="footer">

0 comments on commit fe0677f

Please sign in to comment.