We are mostly using this module to manage non-image files and would prefer to have a table format. I changed the format and table and when I click on the file name nothing happens. Am I doing something wrong or is this not supported?

I get this JavaScript error:

Uncaught TypeError: Cannot read property 'selected_file' of undefined

The code in question is line 256 in visual_select_file.js:

if (Drupal.settings.visual_select_file.selected_file) {

Thank you!

Comments

rudiedirkx’s picture

Everything in VSF expects a grid with TDs. It's not perfect, I agree, but it's not so easy to support all Views style plugins.

If you have an idea, or patch, I'm all for improving/adding table support. I probably won't start it, because I always use the grid view.

capellic’s picture

Status: Active » Closed (won't fix)

Understood, thanks for your response.

rudiedirkx’s picture

Status: Closed (won't fix) » Active

Well, let's not close it. Who knows, maybe someone has the time and will. It's definitely not a Won't fix.

capellic’s picture

Ah, OK, thanks.

  • rudiedirkx committed 572be3b on 7.x-1.x
    Issue #2495195: Ability to change visual_select_file View to a table...
rudiedirkx’s picture

Turns out I was bored. Try dev. You can make it a table and it should still work, IF you copy the views row class from the default view, so revert it first.

Dev is new: https://www.drupal.org/node/2496685

rudiedirkx’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.