added the 'All' button next to the 'Change log' label in sidebar boxes to put back the lost href link for the collapsible sidebar box implementation

This commit is contained in:
hyung-hwan 2015-04-17 05:56:04 +00:00
parent 3432debaa2
commit 31f433b375
4 changed files with 25 additions and 2 deletions

View File

@ -52,6 +52,9 @@ function render_wiki()
collapsible: true collapsible: true
}); });
$("#project_home_sidebar_log_all_button").button ().click (function () {
$(location).attr ('href', "<?php print site_url(); ?>/project/log/" + "<?php print $project->id; ?>");
});
} }
$(function() { $(function() {
@ -172,8 +175,10 @@ foreach ($urls as $url)
<div id="project_home_sidebar_log_box" class="collapsible-box"> <div id="project_home_sidebar_log_box" class="collapsible-box">
<div id="project_home_sidebar_log_header" class="collapsible-box-header"> <div id="project_home_sidebar_log_header" class="collapsible-box-header">
<?php print anchor ("/project/log/{$project->id}", $this->lang->line('Change log')) ?> <span><?php print $this->lang->line('Change log'); ?></span>
<span id="project_home_sidebar_log_all_span"><a href='#' id="project_home_sidebar_log_all_button"><?php print $this->lang->line('All'); ?></a></span>
</div> </div>
<?php <?php
print '<table id="project_home_sidebar_log_table" class="collapsible-box-table">'; print '<table id="project_home_sidebar_log_table" class="collapsible-box-table">';

View File

@ -45,6 +45,10 @@ $(function () {
$("#site_home_sidebar_log_box").accordion ({ $("#site_home_sidebar_log_box").accordion ({
collapsible: true collapsible: true
}); });
$("#site_home_sidebar_log_all_button").button ().click (function () {
$(location).attr ('href', "<?php print site_url(); ?>/site/log");
});
}); });
</script> </script>
@ -113,7 +117,11 @@ foreach ($latest_projects as $project)
</div> </div>
<div id="site_home_sidebar_log_box" class="collapsible-box"> <div id="site_home_sidebar_log_box" class="collapsible-box">
<div id="site_home_sidebar_log_header" class="collapsible-box-header"><?php print anchor ("/site/log", $this->lang->line('Change log')); ?></div> <div id="site_home_sidebar_log_header" class="collapsible-box-header">
<span><?php print $this->lang->line('Change log'); ?></span>
<span id="site_home_sidebar_log_all_span"><a href='#' id="site_home_sidebar_log_all_button"><?php print $this->lang->line('All'); ?></a></span>
</div>
<table id="site_home_sidebar_log_table" class="collapsible-box-table"> <table id="site_home_sidebar_log_table" class="collapsible-box-table">
<?php <?php
$xdot = $this->converter->AsciiToHex ('.'); $xdot = $this->converter->AsciiToHex ('.');

View File

@ -13,6 +13,7 @@
#project_home_sidebar .collapsible-box-header { #project_home_sidebar .collapsible-box-header {
background: #E5ECF9 none repeat scroll 0 0; background: #E5ECF9 none repeat scroll 0 0;
border: #D4DBE8 1px solid; border: #D4DBE8 1px solid;
color: #1C94C4;
} }
#project_home_sidebar .collapsible-box-list { #project_home_sidebar .collapsible-box-list {
@ -26,6 +27,10 @@
border-collapse: collapse; border-collapse: collapse;
} }
#project_home_sidebar_log_all_button {
color: #1C94C4;
}
#project_home_sidebar_log_table td { #project_home_sidebar_log_table td {
padding-left: 0.5em; padding-left: 0.5em;
} }

View File

@ -13,6 +13,7 @@
#site_home_sidebar .collapsible-box-header { #site_home_sidebar .collapsible-box-header {
background: #E5ECF9 none repeat scroll 0 0; background: #E5ECF9 none repeat scroll 0 0;
border: #D4DBE8 1px solid; border: #D4DBE8 1px solid;
color: #1C94C4;
} }
#site_home_sidebar .collapsible-box-list { #site_home_sidebar .collapsible-box-list {
@ -26,6 +27,10 @@
border-collapse: collapse; border-collapse: collapse;
} }
#site_home_sidebar_log_all_button {
color: #1C94C4;
}
#site_home_sidebar_log_table td { #site_home_sidebar_log_table td {
padding-left: 0.5em; padding-left: 0.5em;
} }