зеркало из https://github.com/mozilla/pjs.git
Bug 365115 i think we should default to TB (whatever TB means? topbottom?) for dependency graphs
r=mkanat a=mkanat
This commit is contained in:
Родитель
1d0cba794b
Коммит
676dd09cfa
|
@ -95,13 +95,13 @@ sub AddLink {
|
|||
}
|
||||
|
||||
# The list of valid directions. Some are not proposed in the dropdrown
|
||||
# menu despite they are valid ones.
|
||||
# menu despite the fact that they are valid.
|
||||
my @valid_rankdirs = ('LR', 'RL', 'TB', 'BT');
|
||||
|
||||
my $rankdir = $cgi->param('rankdir') || "LR";
|
||||
my $rankdir = $cgi->param('rankdir') || 'TB';
|
||||
# Make sure the submitted 'rankdir' value is valid.
|
||||
if (lsearch(\@valid_rankdirs, $rankdir) < 0) {
|
||||
$rankdir = 'LR';
|
||||
$rankdir = 'TB';
|
||||
}
|
||||
|
||||
my $display = $cgi->param('display') || 'tree';
|
||||
|
|
Загрузка…
Ссылка в новой задаче