1
|
|
2
|
|
3
|
|
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);
|