Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
06e1a5d4
Commit
06e1a5d4
authored
Nov 25, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sidebar pin cookie set fix
parent
ef60cc77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
directives.js
app/shared/directives.js
+2
-4
No files found.
app/shared/directives.js
View file @
06e1a5d4
...
...
@@ -139,7 +139,6 @@ app.directive('logout', function ($http, $location, RESTURL) {
controller
:
function
(
$scope
,
$rootScope
)
{
$rootScope
.
collapsed
=
false
;
$rootScope
.
sidebarPinned
=
$cookies
.
get
(
'sidebarPinned'
)
||
0
;
var
cookieSidebar
=
{
1
:
0
,
0
:
1
};
$scope
.
collapseToggle
=
function
()
{
if
(
$window
.
innerWidth
>
'768'
)
{
...
...
@@ -148,15 +147,14 @@ app.directive('logout', function ($http, $location, RESTURL) {
jQuery
(
".manager-view"
).
css
(
"width"
,
"calc(100% - 62px)"
);
$rootScope
.
collapsed
=
true
;
$rootScope
.
sidebarPinned
=
0
;
$cookies
.
put
(
'sidebarPinned'
,
cookieSidebar
[
$cookies
.
get
(
'sidebarPinned'
)]
);
$cookies
.
put
(
'sidebarPinned'
,
0
);
}
else
{
jQuery
(
"span.menu-text, span.arrow, .sidebar footer"
).
fadeIn
(
400
);
jQuery
(
".sidebar"
).
css
(
"width"
,
"250px"
);
jQuery
(
".manager-view"
).
css
(
"width"
,
"calc(100% - 250px)"
);
$rootScope
.
collapsed
=
false
;
$rootScope
.
sidebarPinned
=
1
;
$cookies
.
put
(
'sidebarPinned'
,
cookieSidebar
[
$cookies
.
get
(
'sidebarPinned'
)]
);
$cookies
.
put
(
'sidebarPinned'
,
1
);
}
}
};
...
...
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