I enabled the "frontpage" view and when I go to remove a filter or sort criteria, the "remove" circle-slash button points to the following URL:

http://localhost/mysite/javascript%3Avoid%28%29

I didn't see this mentioned before but it seems like a pretty big bug not to mention, since I think everybody messes with this view. If I'm the only one seeing it, how could my setup be different? This is a really critical issue, to me. Thanks.

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

This has been working for me for some time. If that link is not working it may indicate that somehow javascript is crashing for you. Perhaps there's an error in your javascript console?

jennypanighetti’s picture

No error in Safari or Firefox consoles. Same issue in both; the link itself tries to load in the browser window.

I can get around it by clicking on the field and then using the "remove" button. This error occurs only when I go to the "Rearrange" button and try to remove it from those circle buttons..

jennypanighetti’s picture

I noticed in firebug that this link might be acting this way because it's looking specifically for "/mysite/javascript:void()". I found the place where this link is created:

/includes/admin.inc, lines 2696 and 2982.

$row[] = drupal_render($form[$id]['removed']) . l('<span>' . t('Remove') . '</span>', 'javascript:void()', array('attributes' => array('id' => 'views-remove-link-' . $id, 'class' => array('views-hidden', 'views-button-remove', 'views-remove-link'), 'alt' => t('Remove this item'), 'title' => t('Remove this item')), 'html' => TRUE));

Could there be some conversion issue in the l() function?

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

a) this is fixed in dev already
b) in the new ui there might be checkboxes.

meigwil’s picture

I had the same issue. I copied the includes/admin.inc from the dev release into the stable release and it worked OK.

jennypanighetti’s picture

Thanks all. I hadn't noticed this a bug report in the queue even for closed issues. Indeed, this went away in views 7.x.dev.

jennypanighetti’s picture

Status: Fixed » Closed (fixed)
moritzz’s picture

I downloaded the dev release, but the aforementioned code is exactly the same. Any hints?

moritzz’s picture

Status: Closed (fixed) » Needs review

I reopen this one - so it might get some more traction.

dawehner’s picture

Status: Needs review » Fixed

See http://drupal.org/node/1060866#comment-4101530

It's not the same code. Look up for example in the git repo.

moritzz’s picture

@dereine Do I get the corrected version with?

git clone --branch 7.x-3.x-dev http://git.drupal.org/project/views.git views-7.x-3.x-dev

I'm new to Git, unfortunately. :) Thanks, Moritz

dawehner’s picture

This would for example work.

moritzz’s picture

Okay, Thanks. (I might got the wrong "branch" or whatever it's called in Git...) I'll check that later.

Status: Fixed » Closed (fixed)

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

zhangyi5’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.7

Try to delete a field in the bookmark view, which is generated by the flag module. And the following error message shows up as content:

Page not found
The requested page "/drupal/javascript%3Avoid%28%29" could not be found.

zhangyi5’s picture

After disabled the "jQuery Update" module, the error disappeared.

BoySherman’s picture

Ditto, removed jQuery Update, and the problem is resolved...

mamadrupal’s picture

I need jquery for my file upload how can i resolve this issue.

sprice’s picture

@mamadrupal If you're using the newest dev version of jquery_update, then you'll get this problem because that dev versions uses jquery_ui 1.10 rather than 1.8. So, just downgrade to the stable release, and everything should be fine.

silver_standion’s picture

I had the same prob. Just set my jquery update to version 1.7 instead of 1.8. Worked for me.

joran lafleuriel’s picture

Thanks !

Downgrade jquery update to 1.7 for both admin and front page saved my life !

hirasingh’s picture

I am getting same issue when I am trying to delete extra fields in view using Drupa 6.x. Don't have any error in console. Please help me its urgent..........

Thanks
Hira Singh

hendrohwibowo’s picture

Issue summary: View changes

Downgrade jquery update to 1.7 and it work!!!!!!!! and it is 2015 now.....
thanks for people who post their solution whatever it is, so we can try many things.

i laughed like crazy over this, after so many frustated hours... thanks thanks thanks

Anonymous’s picture

thanks a lot! The downgrade of jquery update from 1.8 to 1.7 worked for me too.

darrellduane’s picture

setting jQueryUpdate to use jQuery 1.9 or to 1.10 also doesn't work. Can someone fix this?