commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / views / js / views-list.js
1 /**
2 * @file
3 * Javascript related to the main view list.
4 */
5 (function ($) {
6
7 Drupal.behaviors.viewsUIList = {
8 attach: function (context) {
9 $('#ctools-export-ui-list-items thead a').once('views-ajax-processed').each(function() {
10 $(this).click(function() {
11 var query = $.deparam.querystring(this.href);
12 $('#ctools-export-ui-list-form select[name=order]').val(query['order']);
13 $('#ctools-export-ui-list-form select[name=sort]').val(query['sort']);
14 $('#ctools-export-ui-list-form input.ctools-auto-submit-click').trigger('click');
15 return false;
16 });
17 });
18 }
19 };
20
21 })(jQuery);