Projet

Général

Profil

Paste
Télécharger (659 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / js / views-list.js @ 4003efde

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);