Active
Project:
Views Hacks
Version:
6.x-1.x-dev
Component:
Views Filters Auto-Submit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 07:48 UTC
Updated:
7 Apr 2013 at 02:15 UTC
Hi
It would be great if there was an indication that a search is taking place, like the thorbber in the ajax view.
Idan
Comments
Comment #1
infojunkieYes. It does in the case of Ajax, though :-)
Comment #2
arbel commentedhmm, my setup has ajax setup and still no throbber.
here's the view:
$view = new view;
$view->name = 'test';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['row_options']['build_mode'] = 'full';
$handler->display->display_options['row_options']['links'] = 1;
$handler->display->display_options['row_options']['comments'] = 0;
/* Filter: Node: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'property' => 'property',
);
/* Filter: Taxonomy: Term */
$handler->display->display_options['filters']['tid']['id'] = 'tid';
$handler->display->display_options['filters']['tid']['table'] = 'term_node';
$handler->display->display_options['filters']['tid']['field'] = 'tid';
$handler->display->display_options['filters']['tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid']['expose']['operator'] = 'tid_op';
$handler->display->display_options['filters']['tid']['expose']['label'] = 'Type';
$handler->display->display_options['filters']['tid']['expose']['identifier'] = 'tid';
$handler->display->display_options['filters']['tid']['expose']['reduce'] = 0;
$handler->display->display_options['filters']['tid']['reduce_duplicates'] = 0;
$handler->display->display_options['filters']['tid']['type'] = 'select';
$handler->display->display_options['filters']['tid']['vid'] = '4';
$handler->display->display_options['filters']['tid']['error_message'] = 0;
/* Filter: Content: Price (field_price) - amount */
$handler->display->display_options['filters']['field_price_amount']['id'] = 'field_price_amount';
$handler->display->display_options['filters']['field_price_amount']['table'] = 'node_data_field_price';
$handler->display->display_options['filters']['field_price_amount']['field'] = 'field_price_amount';
$handler->display->display_options['filters']['field_price_amount']['operator'] = 'between';
$handler->display->display_options['filters']['field_price_amount']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_price_amount']['expose']['operator'] = 'field_price_amount_op';
$handler->display->display_options['filters']['field_price_amount']['expose']['label'] = 'Price';
$handler->display->display_options['filters']['field_price_amount']['expose']['identifier'] = 'field_price_amount';
/* Filter: Taxonomy: Term */
$handler->display->display_options['filters']['tid_1']['id'] = 'tid_1';
$handler->display->display_options['filters']['tid_1']['table'] = 'term_node';
$handler->display->display_options['filters']['tid_1']['field'] = 'tid';
$handler->display->display_options['filters']['tid_1']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid_1']['expose']['operator'] = 'tid_1_op';
$handler->display->display_options['filters']['tid_1']['expose']['label'] = 'Location';
$handler->display->display_options['filters']['tid_1']['expose']['identifier'] = 'tid_1';
$handler->display->display_options['filters']['tid_1']['type'] = 'select';
$handler->display->display_options['filters']['tid_1']['vid'] = '5';
$handler->display->display_options['filters']['tid_1']['error_message'] = 0;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['row_options']['links'] = 1;
$handler->display->display_options['row_options']['comments'] = 0;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['path'] = 'listing';
Comment #3
infojunkieI hadn't tested Views Filters Auto-submit with Views 3 yet. Turning this into a bug.
Comment #4
sebas5384 commentedMaybe this can help you!
http://drupal.org/node/1057836
Sebas.
Comment #5
Nick Robillard commentedSo I see the throbber appearing now in Views 3 but it's only if i hit enter - ie: if the form is submitted via Apply button without the help of change detection JS.
Ideally I'd see a throbber appear whenever the exposed form is submitted, not just when Apply is clicked.
In views ajax.js, this is how the throbber gets added.
So the Apply button has to get clicked in order for throbber to show. In order for this to happen, the form submit JS would have to change to simulating a click on the hidden Apply button
$('.form-submit').click()rather than doing a form submit$(form).submit()like it is right now. I've tried some things but have found that AJAX breaks when doing a$('.form-submit').click().Comment #6
seandunaway commentedI'm missing the throbber in Views Hacks 6.x-1.x-dev against Views 6.x-3.x-dev, also.
Comment #7
fourmi4x commentedSuscribing - It would be great to have the throbber with auto-submit.
Comment #8
knic commentedSuscribing - it's a bit confusing for the user if there's no result. Nothing changes on screen and it looks like the search is simply not working.
Comment #9
halloffame commentedStill happening with the latest dev version. We need a way to let the user know that something is being loaded...
Comment #10
halloffame commented