views-list.js 659 B

123456789101112131415161718192021
  1. /**
  2. * @file
  3. * JavaScript related to the main view list.
  4. */
  5. (function ($) {
  6. Drupal.behaviors.viewsUIList = {
  7. attach: function (context) {
  8. $('#ctools-export-ui-list-items thead a').once('views-ajax-processed').each(function() {
  9. $(this).click(function() {
  10. var query = $.deparam.querystring(this.href);
  11. $('#ctools-export-ui-list-form select[name=order]').val(query['order']);
  12. $('#ctools-export-ui-list-form select[name=sort]').val(query['sort']);
  13. $('#ctools-export-ui-list-form input.ctools-auto-submit-click').trigger('click');
  14. return false;
  15. });
  16. });
  17. }
  18. };
  19. })(jQuery);