Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
300
Merge Requests
300
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
970cfb3a
Commit
970cfb3a
authored
Nov 12, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2603988
by heykarthikwithu: Unnecessary ternary condition in toolbar JS
parent
fbe0991b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/modules/toolbar/js/views/ToolbarVisualView.js
core/modules/toolbar/js/views/ToolbarVisualView.js
+1
-1
No files found.
core/modules/toolbar/js/views/ToolbarVisualView.js
View file @
970cfb3a
...
...
@@ -124,7 +124,7 @@
var
orientation
=
this
.
model
.
get
(
'
orientation
'
);
// Determine the toggle-to orientation.
var
antiOrientation
=
(
orientation
===
'
vertical
'
)
?
'
horizontal
'
:
'
vertical
'
;
var
locked
=
(
antiOrientation
===
'
vertical
'
)
?
true
:
false
;
var
locked
=
antiOrientation
===
'
vertical
'
;
// Remember the locked state.
if
(
locked
)
{
localStorage
.
setItem
(
'
Drupal.toolbar.trayVerticalLocked
'
,
'
true
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment