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:
parent
3432debaa2
commit
31f433b375
@ -52,6 +52,9 @@ function render_wiki()
|
||||
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() {
|
||||
@ -172,8 +175,10 @@ foreach ($urls as $url)
|
||||
|
||||
<div id="project_home_sidebar_log_box" class="collapsible-box">
|
||||
<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>
|
||||
|
||||
<?php
|
||||
print '<table id="project_home_sidebar_log_table" class="collapsible-box-table">';
|
||||
|
||||
|
@ -45,6 +45,10 @@ $(function () {
|
||||
$("#site_home_sidebar_log_box").accordion ({
|
||||
collapsible: true
|
||||
});
|
||||
|
||||
$("#site_home_sidebar_log_all_button").button ().click (function () {
|
||||
$(location).attr ('href', "<?php print site_url(); ?>/site/log");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -113,7 +117,11 @@ foreach ($latest_projects as $project)
|
||||
</div>
|
||||
|
||||
<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">
|
||||
<?php
|
||||
$xdot = $this->converter->AsciiToHex ('.');
|
||||
|
@ -13,6 +13,7 @@
|
||||
#project_home_sidebar .collapsible-box-header {
|
||||
background: #E5ECF9 none repeat scroll 0 0;
|
||||
border: #D4DBE8 1px solid;
|
||||
color: #1C94C4;
|
||||
}
|
||||
|
||||
#project_home_sidebar .collapsible-box-list {
|
||||
@ -26,6 +27,10 @@
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#project_home_sidebar_log_all_button {
|
||||
color: #1C94C4;
|
||||
}
|
||||
|
||||
#project_home_sidebar_log_table td {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
@ -13,6 +13,7 @@
|
||||
#site_home_sidebar .collapsible-box-header {
|
||||
background: #E5ECF9 none repeat scroll 0 0;
|
||||
border: #D4DBE8 1px solid;
|
||||
color: #1C94C4;
|
||||
}
|
||||
|
||||
#site_home_sidebar .collapsible-box-list {
|
||||
@ -26,6 +27,10 @@
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#site_home_sidebar_log_all_button {
|
||||
color: #1C94C4;
|
||||
}
|
||||
|
||||
#site_home_sidebar_log_table td {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user