Commit Graph

27 Commits

Author SHA1 Message Date
15583ec552 Drop outdated JavaScript code no longer used 2023-05-09 22:10:40 +02:00
240fbc5a3b Add Sentry instrumentation for JavaScript 2023-05-09 22:10:40 +02:00
a97b56f36f Allow removing all event handles in JavaScript
This is useful to remove any handlers, e.g., when submitting an exercise. Hopefully, we will see less Javascript errors due to cumbersome behavior with these changes...

Also, I am cleaning up unused event handlers. The `showOutput` method doesn't seem to be used, we should observe this in the future.

Closes CODEOCEAN-KQ
2023-04-02 18:15:24 +02:00
bdcef4d183 Stop Code before redirecting after submit
Usually, this should not be needed, but users can first submit code and simultaneously request comments.

Fixes CODEOCEAN-KM
2023-03-20 14:02:20 +01:00
252704b083 Ensure to clear timeout in autosave
We are still trying to ensure autosave is not called outside the /implement route.

Relates to CODEOCEAN-G1
2023-02-28 12:31:22 +01:00
6c1bfb6815 Fix showSpinner for reset action 2023-02-28 11:35:17 +01:00
15878f500c Switch order of unloading the autosave timer
Hypothesis: When unloadAutoSave was called, we first saved (causing this.autosaveTimer to become null) and then tried to clearTimeout on this variable (= on null). This probably never worked?

Hopefully closes CODEOCEAN-B5
2022-11-16 23:26:25 +01:00
b4ab807ef0 Open Render in new Tab with timeout (to resolve issue with Safari) 2022-09-23 21:35:23 +02:00
150df3d219 Open linked resources in a new browsing context 2022-09-23 21:35:22 +02:00
16c00ec136 Add support for signed URLs used by the render_file function 2022-09-23 21:35:22 +02:00
416135daf0 Change order of autosave and clearing of editors when submitting code 2021-12-16 11:54:31 +01:00
5189ec8249 Fix resetting active file if filetree is disabled 2021-12-15 00:52:30 +01:00
da4e10b990 Add CommunitySolution
* Also slightly refactor some JS files
2021-11-23 01:38:31 +01:00
991fdef8bc Handle depleted containers for submit 2021-11-14 22:45:12 +01:00
f896d041f8 Restructure submissions_controller and remove outdated copy_comments method 2021-11-01 17:12:58 +01:00
f32661ad78 Rework left sidebar
* Move Buttons from left sidebar to JSTree
* Use light style for collapse sidebar buttons
2021-05-28 17:49:59 +02:00
1e5a9b0825 Remove unused SubmissionsController#stop action 2021-04-07 17:45:38 +02:00
fc511ba796 Clear Timeout before leaving implement route 2020-10-29 13:48:29 +01:00
51188eb72a Stop code prior to new run attempt 2020-10-29 12:39:01 +01:00
e5aeb8597b Prevent submission creation if url is undefined 2020-10-29 11:53:07 +01:00
3735d0b6cd Replace vanilla JS redirects with Turbolinks 2020-03-07 11:53:44 +01:00
d0eceac440 Upgrade font-awesome and add option reset only active file 2020-01-29 10:55:15 +01:00
a0d8b30ef2 Implement support for some basic embed options for work sheets via LTI
This commit also fixes an issue with the flash messages being positioned too high and displayed for too long
2018-12-11 14:29:36 +01:00
1833435268 Use CodeOceanEditor.active_file to access file selected in JSFileTree 2018-12-05 13:46:44 +01:00
16a5345a71 Migrate jQuery function use for ajax in case of success or failure
Deprecation Notice:

The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.
2018-11-26 12:23:30 +01:00
7bdb962616 Update Bootstrap to v4.1, fix chosen.js and pagedown on multiple sites 2018-11-06 16:49:41 +01:00
15b1670511 Update Turbolinks, load additional assets only on request, fix JS
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:01 +01:00