-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drag and drop initial, still some slight bugs to fix with styling * bug fixes, ready for PR
- Loading branch information
Showing
4 changed files
with
166 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# On click to 'fake submit' it triggers a click even on file picker | ||
# so that the user can pick the file | ||
$('#handin_show_assessment #fake-submit').click (e)-> | ||
e.preventDefault() | ||
$("#handin_show_assessment input[type='file']").trigger('click'); | ||
# $('#handin_show_assessment #fake-submit').click (e)-> | ||
# e.preventDefault() | ||
# $("#handin_show_assessment input[type='file']").trigger('click'); | ||
|
||
# On file pick, we submit the form automatically | ||
$("input[type='file']").change (e)-> | ||
$('#handin_show_assessment #new_submission').submit() | ||
$("#handin_show_assessment input[type='file']").val("") # clear for re-selecting the same file | ||
# # On file pick, we submit the form automatically | ||
# $("input[type='file']").change (e)-> | ||
# $('#handin_show_assessment #new_submission').submit() | ||
# $("#handin_show_assessment input[type='file']").val("") # clear for re-selecting the same file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters