diff --git a/resources/vue/components/StudipActionMenu.vue b/resources/vue/components/StudipActionMenu.vue index 282d0685d05fda9f5297e510d328e17652c58758..14e5517516ea5716d29dc0052a3e748130c120c3 100644 --- a/resources/vue/components/StudipActionMenu.vue +++ b/resources/vue/components/StudipActionMenu.vue @@ -60,7 +60,8 @@ export default { linkEvents (item) { let events = {}; if (item.emit) { - events.click = () => { + events.click = (e) => { + e.preventDefault(); this.$emit.apply(this, [item.emit].concat(item.emitArguments)); this.close(); }; diff --git a/resources/vue/components/courseware/CoursewareBlockActions.vue b/resources/vue/components/courseware/CoursewareBlockActions.vue index fd689fa639581580c2106ce36fbe6dd7b44930ae..bb2177edc0f8fb63a2f89a88c0707bb14ddcad3f 100755 --- a/resources/vue/components/courseware/CoursewareBlockActions.vue +++ b/resources/vue/components/courseware/CoursewareBlockActions.vue @@ -46,7 +46,12 @@ export default { mounted() { if (this.canEdit) { if (!this.deleteOnly) { - this.menuItems.push({ id: 1, label: this.$gettext('Block bearbeiten'), icon: 'edit', emit: 'editBlock' }); + this.menuItems.push({ + id: 1, + label: this.$gettext('Block bearbeiten'), + icon: 'edit', + emit: 'editBlock', + }); this.menuItems.push({ id: 2, label: this.block.attributes.visible @@ -66,7 +71,7 @@ export default { id: 9, label: this.$gettext('Block löschen'), icon: 'trash', - emit: 'deleteBlock' + emit: 'deleteBlock', }); } diff --git a/resources/vue/components/courseware/CoursewareBlockadderItem.vue b/resources/vue/components/courseware/CoursewareBlockadderItem.vue index 860847cd7bed2375d83c0aa34d629028ba957925..6339e0dbae76f18ad4a98a0a1da9d737bcd36b43 100755 --- a/resources/vue/components/courseware/CoursewareBlockadderItem.vue +++ b/resources/vue/components/courseware/CoursewareBlockadderItem.vue @@ -1,5 +1,5 @@ <template> - <a href="#" @click="addBlock"> + <a href="#" @click.prevent="addBlock"> <div class="cw-blockadder-item" :class="['cw-blockadder-item-' + type]"> <header class="cw-blockadder-item-title"> {{ title }} diff --git a/resources/vue/components/courseware/CoursewareContainerAdderItem.vue b/resources/vue/components/courseware/CoursewareContainerAdderItem.vue index bf64758f837706525329498878537d0c826a4898..5cc82cd43d0a67d7dbda8112bfd64769c37f79e6 100755 --- a/resources/vue/components/courseware/CoursewareContainerAdderItem.vue +++ b/resources/vue/components/courseware/CoursewareContainerAdderItem.vue @@ -1,5 +1,5 @@ <template> - <a href="#" @click="addContainer"> + <a href="#" @click.prevent="addContainer"> <div class="cw-blockadder-item" :class="['cw-blockadder-item-' + type]"> <header class="cw-blockadder-item-title"> {{ title }}