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
e01996e2
Commit
e01996e2
authored
3 years ago
by
Maximilian Giller
Browse files
Options
Downloads
Patches
Plain Diff
Added instructions to menu
parent
380038e0
No related branches found
No related tags found
No related merge requests found
Pipeline
#52771
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
editor/editor.php
+3
-0
3 additions, 0 deletions
editor/editor.php
editor/js/tools/deletetool.js
+2
-1
2 additions, 1 deletion
editor/js/tools/deletetool.js
with
5 additions
and
1 deletion
editor/editor.php
+
3
−
0
View file @
e01996e2
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
<div
id=
"box-select-layer"
><div
id=
"2d-graph"
></div></div>
<div
id=
"box-select-layer"
><div
id=
"2d-graph"
></div></div>
<section
id=
"toolbar"
></section>
<section
id=
"toolbar"
></section>
<section
id=
"tool-menu"
>
<section
id=
"tool-menu"
>
<div
id=
"delete-menu"
class=
"hidden"
>
<p>
Drag and drop while pressing SHIFT to delete all the nodes that are being selected.
</p>
</div>
<div
id=
"collect-menu"
class=
"hidden"
>
<div
id=
"collect-menu"
class=
"hidden"
>
<h3>
Collected items
</h3>
<h3>
Collected items
</h3>
<button
id=
"clear-collection"
>
Clear
</button>
<button
id=
"clear-collection"
>
Clear
</button>
...
...
This diff is collapsed.
Click to expand it.
editor/js/tools/deletetool.js
+
2
−
1
View file @
e01996e2
...
@@ -2,6 +2,7 @@ import Tool from "./tool";
...
@@ -2,6 +2,7 @@ import Tool from "./tool";
import
{
graph
,
state
,
renderer
}
from
"
../editor
"
;
import
{
graph
,
state
,
renderer
}
from
"
../editor
"
;
import
*
as
Graph
from
"
../graph
"
;
import
*
as
Graph
from
"
../graph
"
;
import
jquery
from
"
jquery
"
;
import
jquery
from
"
jquery
"
;
import
ToolMenu
from
"
./menus/toolmenu
"
;
/**
/**
* Only one instance of this should exist, since box-delete has to work on a global scale.
* Only one instance of this should exist, since box-delete has to work on a global scale.
...
@@ -9,7 +10,7 @@ import jquery from "jquery";
...
@@ -9,7 +10,7 @@ import jquery from "jquery";
var
deleteToolInstance
=
undefined
;
// Used for box delete
var
deleteToolInstance
=
undefined
;
// Used for box delete
export
default
class
DeleteTool
extends
Tool
{
export
default
class
DeleteTool
extends
Tool
{
constructor
(
key
)
{
constructor
(
key
)
{
super
(
"
Delete
"
,
"
delete
"
,
key
);
super
(
"
Delete
"
,
"
delete
"
,
key
,
new
ToolMenu
()
);
this
.
setupBoxSelect
();
this
.
setupBoxSelect
();
if
(
deleteToolInstance
===
undefined
)
{
if
(
deleteToolInstance
===
undefined
)
{
...
...
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