Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
4d5b8975
Commit
4d5b8975
authored
Mar 11, 2019
by
john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2949
parent
8328a091
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
common/modules/documentation/assets/src/js/accordion.js
common/modules/documentation/assets/src/js/accordion.js
+0
-1
common/modules/documentation/models/DocList.php
common/modules/documentation/models/DocList.php
+7
-4
No files found.
common/modules/documentation/assets/src/js/accordion.js
View file @
4d5b8975
...
...
@@ -14,7 +14,6 @@ if($('.set').length){
$
(
'
.set_in
'
).
slideUp
(
200
);
$
(
this
).
siblings
(
'
.set_in
'
).
slideDown
(
200
);
}
return
false
;
});
}
\ No newline at end of file
common/modules/documentation/models/DocList.php
View file @
4d5b8975
...
...
@@ -168,12 +168,12 @@ class DocList extends \yii\db\ActiveRecord
$thisLevel
=
DocList
::
find
()
->
where
([
'='
,
'parent_id'
,
$parent_id
])
->
orderBy
([
'position'
=>
SORT_ASC
])
->
all
();
foreach
(
$thisLevel
as
$level
)
{
$docContents
=
$level
->
docContents
;
$url
=
(
$docContents
)
?
$docContents
[
0
]
->
lang
->
url
:
'
'
;
$url
=
(
$docContents
)
?
'/'
.
$docContents
[
0
]
->
lang
->
url
:
'#
'
;
$curent
=
[
'id'
=>
$level
->
id
,
'text'
=>
$level
->
lang
->
name
,
'url'
=>
'/'
.
$url
,
'url'
=>
$url
,
'state'
=>
[
'selected'
=>
$updated
->
id
==
$level
->
id
,
'expanded'
=>
true
,
...
...
@@ -201,10 +201,13 @@ class DocList extends \yii\db\ActiveRecord
if
(
isset
(
$item
[
'nodes'
])
&&
is_array
(
$item
[
'nodes'
]))
$ch
=
$this
->
getList
(
$item
[
'nodes'
],
$open
,
false
);
$active
=
''
;
if
(
$item
[
'url'
]
==
yii
::
$app
->
request
->
url
)
{
if
(
$item
[
'url'
]
==
yii
::
$app
->
request
->
url
||
(
$baseLevel
&&
$open
)
)
{
$active
=
'active'
;
}
$list
[]
=
Html
::
tag
(
'li'
,
Html
::
a
(
$item
[
'text'
],
$item
[
'url'
])
.
$ch
,
[
'class'
=>
$
open
.
' '
.
$
active
]);
$list
[]
=
Html
::
tag
(
'li'
,
Html
::
a
(
$item
[
'text'
],
$item
[
'url'
])
.
$ch
,
[
'class'
=>
$active
]);
if
(
$item
[
'url'
]
==
yii
::
$app
->
request
->
url
)
{
$open
=
'active'
;
}
...
...
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