Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alg
Knowledge Space WP Plugin
Commits
a648f329
Commit
a648f329
authored
3 years ago
by
Maximilian Giller
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused link properties from menu
parent
3e1595e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
editor/editor.php
+1
-11
1 addition, 11 deletions
editor/editor.php
editor/js/graph.js
+1
-1
1 addition, 1 deletion
editor/js/graph.js
editor/js/tools/menus/selectmenu.js
+1
-3
1 addition, 3 deletions
editor/js/tools/menus/selectmenu.js
with
3 additions
and
15 deletions
editor/editor.php
+
1
−
11
View file @
a648f329
...
...
@@ -47,17 +47,7 @@
<textarea
id=
"node-videos"
name=
"node-videos"
></textarea>
</div>
<div
id=
"link-selected"
class=
"hidden"
>
<h3
id=
"link-name"
class=
"bottom-space"
>
aud1 ↔ Sortieren
</h3>
<label
for=
"link-type"
>
Type
</label>
<select
id=
"link-type"
name=
"node-type"
class=
"bottom-space medium-width"
>
<option
value=
"Vorlesung"
>
Vorlesung
</option>
<option
value=
"Algorithmus"
>
Algorithmus
</option>
<option
value=
"Definition"
>
Definition
</option>
<option
value=
"Beispiel"
>
Beispiel
</option>
<option
value=
"Übung"
>
Übung
</option>
<option
value=
"Kapitel"
>
Kapitel
</option>
</select>
<h3
id=
"link-name"
></h3>
</div>
</div>
</section>
...
...
This diff is collapsed.
Click to expand it.
editor/js/graph.js
+
1
−
1
View file @
a648f329
...
...
@@ -22,7 +22,7 @@ export const GRAPH_LINKS = "links";
export
const
IMAGE_SIZE
=
12
;
export
const
IMAGE_SRC
=
PLUGIN_PATH
+
"
datasets/images/
"
;
export
const
LINK_PARAMS
=
[
LINK_TYPE
];
export
const
LINK_PARAMS
=
[];
export
const
NODE_PARAMS
=
[
NODE_ID
,
NODE_LABEL
,
...
...
This diff is collapsed.
Click to expand it.
editor/js/tools/menus/selectmenu.js
+
1
−
3
View file @
a648f329
...
...
@@ -27,8 +27,7 @@ const NODE_MENU = [
];
const
LINK_NAME_ID
=
"
#link-name
"
;
const
LINK_TYPE_ID
=
"
#link-type
"
;
const
LINK_MENU
=
[
LINK_TYPE_ID
];
const
LINK_MENU
=
[];
const
MENU
=
[...
NODE_MENU
,
...
LINK_MENU
];
...
...
@@ -43,7 +42,6 @@ export class SelectMenu extends ToolMenu {
{
menu
:
NODE_TYPE_ID
,
property
:
Graph
.
NODE_TYPE
},
{
menu
:
NODE_REF_ID
,
property
:
Graph
.
NODE_REFERENCES
},
{
menu
:
NODE_VIDEOS_ID
,
property
:
Graph
.
NODE_VIDEOS
},
{
menu
:
LINK_TYPE_ID
,
property
:
Graph
.
LINK_TYPE
},
];
this
.
hooked
=
false
;
// Can only hook menu events once, but have to do it later, when they are loaded
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment