OSC / bc_js_filepicker

A file picker for Batch Connect applications
MIT License
2 stars 6 forks source link

Issue with filepicker/JS #168

Closed ahkumar closed 1 year ago

ahkumar commented 2 years ago

Dear OSC Team,

I have downloaded latest form.js and added the following to my jupyter-notebook batch_connect app.

working_dir: label: "Working Directory" data-filepicker: true data-target-file-type: dirs
readonly: false help: "Select your project directory; defaults to $HOME"

I see the blank input box, and when I click on it or double click on it I don't see the file browser pop-up. Looking at the error on the page I see the following. Any idea how can I fix this?

image

Thanks, Amit

ahkumar commented 2 years ago

Also wanted to add there is no Select button, which would be nice to add instead of clicking on input box. Demo screenshot shows select button I wonder if this requires additional jscript to link it to the input box?

johrstrom commented 2 years ago

What version of OnDemand are you on? There's a backward compatibility issue between 1.8 and 2.0.

ahkumar commented 2 years ago

Hi Jeff it is v1.8.20

johrstrom commented 2 years ago

There ya go, use this release instead.

https://github.com/OSC/bc_js_filepicker/releases/tag/v0.4.7

ahkumar commented 2 years ago

Thank you Jeff. I downloaded v0.4.7 form.js ; Cleared my browser cached data and restarted PUN, but no success:

image

Any idea?

johrstrom commented 1 year ago

Hi, sorry for the delay this should be fixed now in version 3.0.1 - you can pull the form.js from here: https://github.com/OSC/bc_js_filepicker/releases/tag/v3.0.1