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