I'm using the latest Drupal version. I've opened the inbox and wanted to switch to the "Sent messages" folder using the "Current folder" drop down. But nothing happend. I'm still on the inbox page. I've tried it with Firefox 2.0.0.6 and IE 7.0.5730.11. Is there anybody having the same problem?

Greetz
BJ

Comments

liam mcdermott’s picture

Yes, am having the same problem in Opera 9.2. A workaround is to switch off Javascript (just press F12 and uncheck the box in Opera) and refresh the page. A nice HTML 'go' button will appear.

robertdouglass’s picture

StatusFileSize
new15.02 KB

Confirm in FF. I took a screenshot because my first thought was that the submit button is just missing.

liam mcdermott’s picture

my first thought was that the submit button is just missing.

It's not missing IMO. The 'go' button is hidden as Javascript is supposed to submit the form when the user selects an item from the drop-down.

bjacob’s picture

A workaround would be to edit the file privatemsg.module. Then go to line 770 or search for the string :

$form['header']['go_folder'] = array(

There is a attribut parameter:

'#attributes' => array('class' => 'js-hide'),

Just comment it out and you'll see the Go button on the frontend.

TheFazz’s picture

subscribe to issue:

i am facing the same problem on FF v2.

the "select" pulldown is ok, but the "current folder" pulldown isn't.

TheFazz’s picture

I've upgraded to the latest 2.x-dev dated 7 Sept 07 version and the pulldown still does not work.

salvis’s picture

Status: Active » Needs work
StatusFileSize
new1.03 KB

chx probably plans to make the comboboxes auto-submit any changes, if JavaScript is enabled, but in the meantime the attached patch restores the buttons, as suggested by bjacob in #4.

kkaefer’s picture

Status: Needs work » Needs review
StatusFileSize
new919 bytes
salvis’s picture

Status: Needs review » Needs work

Your patch goes only half the way: when you retrieve a folder from the browser's address bar, you get the active folder combobox, but when you change folders, the next page displays the buttons instead of active comboboxes. If you refresh the page, the buttons go away and the comboboxes become active again. This is on FF2.

kkaefer’s picture

salvis, I have no idea what you mean.

salvis’s picture

Ok, I'll try again:

  1. go to /privatemsg, looks like this:
    Current folder: {Inbox|v} Select: {-------|v} Filter: {All types|v}
  2. select Sent messages from the combobox, auto-updates to this:
    Current folder: {Sent messages|v} Select: {-------|v} Filter: {All types|v}
    (sometimes it works...)
  3. select Inbox again from the combobox, auto-updates to this:
    Current folder: {Inbox|v} [Go] Select: {-------|v} Filter: {All types|v} [Filter]

The comboboxes are now inactive (i.e. you can change them as much as you like and nothing happens anymore until you click the [Go] or [Filter] buttons).

This is better than before, but I guess the goal is that #3 should look and work the same as #1...

kkaefer’s picture

I can't reproduce that. It's working fine on my machine. Maybe you still have some cached scripts?

salvis’s picture

I cleared the cache and the problem persists.

The Error Console shows the following messages:

(Warning) Error in parsing value for property 'display'. Declaration dropped.
http://example.com/modules/system/defaults.css Line: 43

(Error) unterminated string literal
http://example.com/misc/jquery.js Line: 2

(Error) $ is not defined
http://example.com/modules/privatemsg/privatemsg.js Line: 4

(Error) $ is not defined
http://example.com/misc/textarea.js Line: 35

When I refresh the page, the buttons go away, and I get only the first message. This time I already got the buttons (and all four messages) at step #2, and I also got a fifth message:

(Error) $ is not defined
http://example.com/misc/tableselect.js Line: 4

I'm using FF 2.0.0.6 (on WinXP SP2) with the Firebug 1.05 add-on that shows me these messages.

kkaefer’s picture

You messed with your jQuery. Get a fresh copy of it from a Drupal 5.x tarball.

salvis’s picture

I messed with jQuery? No, definitely not. Do you mean misc/jquery.js?

That file is an exact copy of the one from http://ftp.drupal.org/files/projects/drupal-5.2.tar.gz.

chx’s picture

Status: Needs work » Fixed

works for me. salvis, if $ is not defined then something is very very broken on your end.

salvis’s picture

Yes, indeed. The one long line in jquery.js was truncated after about 15K, but it's about 19K long.

After splitting the line in two, the problem went away. I was even able to rejoin it, and the problem didn't come back. Go figure...

Sorry about the bogus report.

Anonymous’s picture

Status: Fixed » Closed (fixed)