Skip to content

Commit

Permalink
Merge pull request #98 from hed-standard/develop
Browse files Browse the repository at this point in the history
Fixed bug in sidecar flash messages
  • Loading branch information
VisLab committed Feb 21, 2023
2 parents eeb9de3 + 502419a commit 32fdeef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy_hed/base_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Config(object):
class DevelopmentConfig(Config):
DEBUG = False
TESTING = False
URL_PREFIX = '/heddev'
STATIC_URL_PATH = '/heddev/hedweb/static'
URL_PREFIX = '/hed_dev'
STATIC_URL_PATH = '/hed_dev/hedweb/static'


class ProductionConfig(Config):
Expand Down
4 changes: 2 additions & 2 deletions hedweb/templates/js/sidecar-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function clearForm() {
* Clear the flash messages that aren't related to the form submission.
*/
function clearFlashMessages() {
clearJsonSidecarFlashMessages();
clearSidecarFlashMessages();
clearSchemaSelectFlashMessages();
flashMessageOnScreen('', 'success', 'sidecar_submit_flash');
}
Expand Down Expand Up @@ -107,7 +107,7 @@ function submitForm() {
let sidecarForm = document.getElementById("sidecar_form");
let formData = new FormData(sidecarForm);

let sidecarFile = getJsonFileLabel();
let sidecarFile = getSidecarFileLabel();
let display_name = convertToResultsName(sidecarFile, 'issues')
clearFlashMessages();
flashMessageOnScreen('Sidecar is being processed ...', 'success', 'sidecar_submit_flash')
Expand Down
2 changes: 1 addition & 1 deletion hedweb/templates/js/sidecar-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function clearSidecarFileLabel() {
/**
* Resets the flash messages that aren't related to the form submission.
*/
function clearSidecarInputFlashMessages() {
function clearSidecarFlashMessages() {
flashMessageOnScreen('', 'success', 'sidecar_flash');
}

Expand Down

0 comments on commit 32fdeef

Please sign in to comment.