diff --git a/editor/editor.php b/editor/editor.php index 9332ca159b8ab351f029df86507771510f4596a3..f8048a1c9bbc42db7e84cd152d33e1dc0014f204 100644 --- a/editor/editor.php +++ b/editor/editor.php @@ -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> diff --git a/editor/js/graph.js b/editor/js/graph.js index 094157ccfda936ac1a9df963ec28fecc46ac50b7..22ba7035c81bfed979cc43edeb8b2ee4d62385ee 100644 --- a/editor/js/graph.js +++ b/editor/js/graph.js @@ -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, diff --git a/editor/js/tools/menus/selectmenu.js b/editor/js/tools/menus/selectmenu.js index 3076512b65d1a914935f90763ddba3faecdf9d29..5da777f63bdc00517e28606b051b9a3d49a2303e 100644 --- a/editor/js/tools/menus/selectmenu.js +++ b/editor/js/tools/menus/selectmenu.js @@ -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 }