taskbar / active enhancement
This commit is contained in:
@@ -58,4 +58,14 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="benefit_forms"]').addClass('active');
|
||||
};
|
||||
|
||||
$(document).ready(makeActive)
|
||||
|
||||
</script>
|
||||
@@ -26,7 +26,7 @@
|
||||
Benefit Forms
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<li id="retirement">
|
||||
<%= link_to user_retirement_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
@@ -34,7 +34,7 @@
|
||||
401k Info
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<li id="pto">
|
||||
<%= link_to user_paid_time_off_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
@@ -42,7 +42,7 @@
|
||||
PTO
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<li id="employee_info">
|
||||
<%= link_to user_work_info_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
@@ -50,7 +50,7 @@
|
||||
Work Info
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<li id="performance">
|
||||
<%= link_to user_performance_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
|
||||
@@ -122,6 +122,16 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="pto"]').addClass('active');
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$('#calendar').fullCalendar({
|
||||
events: <%= get_pto_schedule_schedule_index_path(:format => "json").inspect.html_safe %>,
|
||||
})
|
||||
@@ -135,7 +145,8 @@ $('.date_picker').daterangepicker({
|
||||
$(document).ready(function () {
|
||||
drawChart1(),
|
||||
drawChart2(),
|
||||
resizeTopWidgets()
|
||||
resizeTopWidgets(),
|
||||
makeActive()
|
||||
});
|
||||
|
||||
google.load("visualization", "1", {
|
||||
|
||||
@@ -115,8 +115,13 @@ function drawChart2() {
|
||||
chart.draw(data, options);
|
||||
}
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="performance"]').addClass('active');
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
drawChart2()
|
||||
drawChart2(),
|
||||
makeActive()
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -71,4 +71,14 @@
|
||||
</div> <!-- End of span-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="retirement"]').addClass('active');
|
||||
};
|
||||
|
||||
$(document).ready(makeActive)
|
||||
|
||||
</script>
|
||||
@@ -50,8 +50,14 @@ function maskSSN(){
|
||||
}
|
||||
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="employee_info"]').addClass('active');
|
||||
};
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
maskSSN()
|
||||
maskSSN(),
|
||||
makeActive()
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user