Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 33294bb

Browse files
committed
Clear button for challenges filter panel
1 parent a934d0c commit 33294bb

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/web/WEB-INF/includes/my/filter.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
<div class="column thirdColumn">
4949
<div>
50-
<label>Start Date:</label>
50+
<label>Start Date: <a class="clearDates" href="#">Clear</a></label>
5151
<input id='startDateBegin' type='text' readonly="readonly" class="date-pick"/>
5252
<span class='title toLabel'>To</span>
5353
<input id='startDateEnd' type='text' readonly="readonly" class="date-pick"/>
@@ -86,7 +86,7 @@
8686

8787
<div class="column thirdColumn">
8888
<div>
89-
<label>End Date:</label>
89+
<label>End Date:<a class="clearDates" href="#">Clear</a></label>
9090
<input id='endDateBegin' type='text' readonly="readonly" class="date-pick"/>
9191
<span class='title toLabel'>To</span>
9292
<input id='endDateEnd' type='text' readonly="readonly" class="date-pick"/>

src/web/css/direct/dashboard.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14048,3 +14048,13 @@ span.red {
1404814048
color:#ff8a00;
1404914049
}
1405014050

14051+
a.clearDates {
14052+
font-size: 12px;
14053+
color: #ff8a00;
14054+
padding-left: 6px;
14055+
font-weight: normal;
14056+
}
14057+
14058+
a.clearDates:hover {
14059+
text-decoration: none;
14060+
}

src/web/scripts/my/challenges.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ $(document).ready(function () {
2929
}
3030
});
3131

32+
$("a.clearDates").click(function(){
33+
$(this).parent().parent().find("input").val('');
34+
})
35+
3236

3337
// destroy the existing ones
3438
//$(".challengesFilter .date-pick").datePicker().bind(

0 commit comments

Comments
 (0)