Skip to content

Conversation

@driusan
Copy link
Collaborator

@driusan driusan commented Jan 17, 2012

I've made a small change which should make it easier to use javascript in Loris.

This patch makes it so that if there's a file under htdocs/js/modules/ with the same name as the current $test_name, Loris will load that javascript file. If it doesn't exist, nothing will be loaded. Combined with jQuery, this should let us make fancy modules that do fancy javascript things without needing to hardcode all the javascript into the template. It also, should the need arise, makes it possible for us to create instrument-specific javascript for things like validating user input client-side.

…st_name.js

- This should keep the code cleaner and make it easier to write fancy new modules
@samirdas
Copy link
Contributor

Looks good. Optimizes page loads.

samirdas added a commit that referenced this pull request Jan 26, 2012
Module Specific Javascript
@samirdas samirdas merged commit 8065fb2 into aces:master Jan 26, 2012
Jkat referenced this pull request in Jkat/Loris Oct 21, 2014
Fixes to add the SeriesUID and EchoTime in the files table.
@driusan driusan added the Category: Feature PR or issue that aims to introduce a new feature label Dec 16, 2014
rathisekaran pushed a commit to rathisekaran/Loris that referenced this pull request Jun 11, 2015
davidblader added a commit to davidblader/Loris that referenced this pull request Feb 16, 2017
cmadjar referenced this pull request in cmadjar/Loris Apr 24, 2019
Account lockout (merge after "Log bad password attempts")
@jftunteng jftunteng added this to the PRE 20.0.0 milestone Jan 7, 2020
maltheism pushed a commit to maltheism/Loris that referenced this pull request Jun 22, 2020
imported latest version of John script
maltheism pushed a commit to maltheism/Loris that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Feature PR or issue that aims to introduce a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants