diff --git a/module/bug/js/browse.js b/module/bug/js/browse.js index 76bf55c9d3..20a3bab303 100644 --- a/module/bug/js/browse.js +++ b/module/bug/js/browse.js @@ -1,4 +1,14 @@ $(function() { if($('#bugList thead th.c-title').width() < 150) $('#bugList thead th.c-title').width(150); + + /* The display of the adjusting sidebarHeader is synchronized with the sidebar. */ + $(".sidebar-toggle").click(function() + { + $("#sidebarHeader").toggle("fast"); + }); + if($("main").is(".hide-sidebar")) + { + $("#sidebarHeader").hide(); + } }); diff --git a/module/caselib/js/browse.js b/module/caselib/js/browse.js index c0b0581ddc..43514db04c 100644 --- a/module/caselib/js/browse.js +++ b/module/caselib/js/browse.js @@ -20,3 +20,16 @@ function confirmBatchDelete(actionLink) if(confirm(batchDelete)) setFormAction(actionLink); return false; } + +$(function() +{ + /* The display of the adjusting sidebarHeader is synchronized with the sidebar. */ + $(".sidebar-toggle").click(function() + { + $("#sidebarHeader").toggle("fast"); + }); + if($("main").is(".hide-sidebar")) + { + $("#sidebarHeader").hide(); + } +}); \ No newline at end of file diff --git a/module/execution/js/task.js b/module/execution/js/task.js index 013627478d..fe217096b5 100644 --- a/module/execution/js/task.js +++ b/module/execution/js/task.js @@ -14,6 +14,16 @@ $(function() adjustTableFooter(); $('body').on('click', '#toggleFold', adjustTableFooter); $('body').on('click', '.icon.icon-angle-double-right', adjustTableFooter); + + /* The display of the adjusting sidebarHeader is synchronized with the sidebar. */ + $(".sidebar-toggle").click(function() + { + $("#sidebarHeader").toggle("fast"); + }); + if($("main").is(".hide-sidebar")) + { + $("#sidebarHeader").hide(); + } }); $('#module' + moduleID).closest('li').addClass('active'); diff --git a/module/product/js/browse.js b/module/product/js/browse.js index b0beab26e1..ffc9eec594 100644 --- a/module/product/js/browse.js +++ b/module/product/js/browse.js @@ -104,6 +104,16 @@ $(function() { window.location.reload(); }) + + /* The display of the adjusting sidebarHeader is synchronized with the sidebar. */ + $(".sidebar-toggle").click(function() + { + $("#sidebarHeader").toggle("fast"); + }); + if($("main").is(".hide-sidebar")) + { + $("#sidebarHeader").hide(); + } }); /** diff --git a/module/testcase/js/browse.js b/module/testcase/js/browse.js index c52cd7ecd6..c89b07f076 100644 --- a/module/testcase/js/browse.js +++ b/module/testcase/js/browse.js @@ -14,4 +14,14 @@ function confirmBatchDelete(actionLink) $(function() { if($('#caseList thead th.c-title').width() < 150) $('#caseList thead th.c-title').width(150); + + /* The display of the adjusting sidebarHeader is synchronized with the sidebar. */ + $(".sidebar-toggle").click(function() + { + $("#sidebarHeader").toggle("fast"); + }); + if($("main").is(".hide-sidebar")) + { + $("#sidebarHeader").hide(); + } });