Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2008 at 00:23 UTC
Updated:
21 Jan 2009 at 22:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedI agree, I've really wanted to do some more ajaxy smart stuff with this one, but it hasn't been a high priority.
Comment #2
markus_petrux commentedSweet. :) I could try to roll a patch, in a similar fashion than the one used to remind filters in views. Do you have any suggestion on how it should be done?
Comment #3
markus_petrux commentedhmm... but it would also be nice to have a "Reset" button. Here and in the filter section of normal views. Agree?
Comment #4
merlinofchaos commentedYes, with remembering a reset button would be necessary.
Comment #5
markus_petrux commentedGreat. I just checked out from HEAD and I'll try to work this out. Probably first a "Reset" button for the filter section of normal views, and then the whole thing for the views administration section. :)
Comment #6
markus_petrux commentedWell, here's a quick and simple patch that adds a "Reset" button to the views administration list. It is displayed only when there are filters already saved in user session data. Filters are stored in $_SESSION['views_admin'], and that is used to rebuild the $_GET structure when the form is being processed.
Please, Earl let me know it it covers what you expected.
The patch is against HEAD.
Comment #7
markus_petrux commentedAn alternative version of the same thing. It uses += operator to merge session data with $_GET and session data is stored in
$_SESSION['views']['#admin']rather than$_SESSION['views_admin'](reduces potential namespace conflicts).Comment #8
markus_petrux commentedJust wanted to mention that I've been trying to add a "Reset" button to the filter section of normal views and... no success, it's much more complex than what I expected because there's a dependency on just one submit button on several places. So I decided to not work on that, at least for the moment. That was not on my initial request anyway.
So the patch above just adds the ability to remind filters in views administration, and so it provides a "Reset" button there. Nothing more, nothing less, for the moment.
Comment #9
merlinofchaos commentedI love this, Markus! Thanks! Committed!