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
3b15ccc0
Commit
3b15ccc0
authored
Mar 13, 2019
by
john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3011
parent
b735bb20
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
backend/web/plugins/editormd/editormd.js
backend/web/plugins/editormd/editormd.js
+0
-2
common/modules/documentation/assets/DocumentationAsset.php
common/modules/documentation/assets/DocumentationAsset.php
+1
-1
common/modules/documentation/models/DocList.php
common/modules/documentation/models/DocList.php
+4
-0
common/modules/documentation/views/documentation-admin/_form.php
...modules/documentation/views/documentation-admin/_form.php
+6
-1
No files found.
backend/web/plugins/editormd/editormd.js
View file @
3b15ccc0
...
...
@@ -3615,7 +3615,6 @@
};
markedRenderer
.
pageBreak
=
function
(
text
)
{
alert
(
text
)
if
(
pageBreakReg
.
test
(
text
)
&&
settings
.
pageBreak
)
{
text
=
"
<hr style=
\"
page-break-after:always;
\"
class=
\"
page-break editormd-page-break
\"
/>
"
;
...
...
@@ -3624,7 +3623,6 @@
return
text
;
};
markedRenderer
.
carousel
=
function
(
text
)
{
alert
(
text
)
// if (settings.carousel)
// {
// text = '\n\
...
...
common/modules/documentation/assets/DocumentationAsset.php
View file @
3b15ccc0
...
...
@@ -23,10 +23,10 @@ class DocumentationAsset extends AssetBundle
"css/styles.css"
,
];
public
$js
=
[
'js/documentation.js'
,
'js/vendor.min.js'
,
'js/scripts.min.js'
,
'js/accordion.js'
,
'js/documentation.js'
,
];
public
$depends
=
[
'yii\web\YiiAsset'
,
...
...
common/modules/documentation/models/DocList.php
View file @
3b15ccc0
...
...
@@ -249,4 +249,8 @@ class DocList extends \yii\db\ActiveRecord
{
return
DocList
::
find
()
->
where
([
'='
,
'parent_id'
,
$this
->
id
])
->
orderBy
([
'position'
=>
SORT_ASC
])
->
one
();
}
public
function
getFirstRootChild
()
{
return
DocList
::
find
()
->
where
([
'='
,
'parent_id'
,
0
])
->
orderBy
([
'position'
=>
SORT_ASC
])
->
one
();
}
}
common/modules/documentation/views/documentation-admin/_form.php
View file @
3b15ccc0
...
...
@@ -16,7 +16,12 @@ $modelDocList = new DocList();
DocumentationAsset
::
register
(
$this
);
$defaultUrl
=
(
$model
->
list
&&
$model
->
list
->
parent
&&
$model
->
list
->
parent
->
firstChild
->
id
==
$model
->
list
->
id
)
?
common\models\Settings
::
getValue
(
'documentation-home-page'
)
:
false
;
$defaultUrl
=
(
$model
->
list
&&
$model
->
list
->
parent
&&
$model
->
list
->
parent
->
firstRootChild
->
id
==
$model
->
list
->
parent
->
id
&&
$model
->
list
->
parent
->
firstChild
->
id
==
$model
->
list
->
id
)
?
common\models\Settings
::
getValue
(
'documentation-home-page'
)
:
false
;
?>
<div
class=
"co-documentation-form no_editor_wrapper"
>
...
...
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