Skip to content

Commit 60b90f9

Browse files
author
mreishman
committed
Added option to have expanded info popup default open tab be info or commits
1 parent 257a787 commit 60b90f9

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

core/conf/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'enableSystemPrefShellOrPhp' => 'false',
1616
'expSettingsAvail' => 'true',
1717
'defaultViewBranch' => 'Standard',
18+
'defaultExpandTab' => 'info',
1819
'cacheEnabled' => 'true',
1920
'dontNotifyVersion' => '0',
2021
'onlyRefreshVisible' => 'true',

core/html/changelog.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
<li>
33
Version 4.1.1
44
<ul>
5+
<li>
6+
Features
7+
<ul>
8+
<li>
9+
Added option to select default open tab in expanded info window
10+
</li>
11+
</ul>
12+
</li>
513
<li>
614
Bug Fixes
715
<ul>

core/js/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,13 @@ function toggleDetailBar(e, key)
18391839
}
18401840
else
18411841
{
1842-
toggleInfoTab();
1842+
if(defaultExpandTab === "info")
1843+
{
1844+
toggleInfoTab();
1845+
}
1846+
else if(defaultExpandTab === "commits") {
1847+
toggleCommitsTab();
1848+
}
18431849
}
18441850
}
18451851

core/php/templateFiles/settingsMain.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@
107107
</td>
108108
</tr>
109109
<?php endif; ?>
110+
<tr>
111+
<td>
112+
Default Expand Tab
113+
</td>
114+
<td>
115+
<select name="defaultExpandTab">
116+
<option <?php if($defaultExpandTab == 'info'){echo "selected";} ?> value="info">Info</option>
117+
<option <?php if($defaultExpandTab == 'commits'){echo "selected";} ?> value="commits">Commits</option>
118+
</select>
119+
</td>
120+
</tr>
110121
</table>
111122
</div>
112123
</div>

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@
411411
echo "var maxCommits = ".$maxCommits.";";
412412
echo "var onServerRemoveRemoveNotError = ".$onServerRemoveRemoveNotError.";";
413413
echo "var defaultBranchList = '".$defaultBranchList."';";
414+
echo "var defaultExpandTab = '".$defaultExpandTab."';";
414415
if(empty($cachedStatusMainObject))
415416
{
416417
echo "var arrayOfWatchFilters = {};";

0 commit comments

Comments
 (0)