Skip to content

Commit

Permalink
added a reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
xianhuazhou committed Dec 31, 2012
1 parent 4dd842e commit fe0677f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions views/css/elog.css
Expand Up @@ -9,6 +9,10 @@ input {
input.button { input.button {
width: 110px; width: 110px;
} }
input#reset {
width: 50px;
color: #223322;
}


form { form {
margin: auto; margin: auto;
Expand Down
5 changes: 5 additions & 0 deletions views/js/elog.js
Expand Up @@ -33,4 +33,9 @@ $(function() {
e.preventDefault(); e.preventDefault();
$('#filterForm').attr('action', '/toplogs').submit(); $('#filterForm').attr('action', '/toplogs').submit();
}); });

$('#reset').click(function(e){
e.preventDefault();
window.location.href = '/';
});
}); });
2 changes: 1 addition & 1 deletion views/layout.ejs
Expand Up @@ -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="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"> <input type="submit" value="Filter Logs" class="button" id="btnFilterLogs">
or
<input type="submit" value="Filter Top Logs" class="button" id="btnFilterTopLogs"> <input type="submit" value="Filter Top Logs" class="button" id="btnFilterTopLogs">
<input type="button" value="Reset" id="reset">
</form> </form>
<%- body %> <%- body %>
<div id="footer"> <div id="footer">
Expand Down

0 comments on commit fe0677f

Please sign in to comment.