Skip to content
Snippets Groups Projects
Commit 28265d59 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt #99

parent c93ac2e0
No related branches found
No related tags found
No related merge requests found
/*global jQuery, STUDIP */
STUDIP.domReady(() => {
STUDIP.Blubber.init();
});
\ No newline at end of file
});
......@@ -77,7 +77,8 @@
<a class="send" @click="submit" :title="$gettext('Abschicken')">
<studip-icon shape="arr_2up" size="30"></studip-icon>
</a>
<label class="upload" :title="$gettext('Datei hochladen')">
<label class="upload" :title="$gettext('Datei hochladen')" tabindex="0"
@keydown="simulateClick" ref="blubber_upload_file_label">
<input type="file" multiple style="display: none;" @change="upload">
<studip-icon shape="upload" size="30"></studip-icon>
</label>
......@@ -359,6 +360,12 @@
},
hasContent (input) {
return input && input.trim().length > 0;
},
simulateClick (event) {
if (event.code == "Enter") {
//The enter key has been pressed.
this.$refs.blubber_upload_file_label.click();
}
}
},
directives: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment