Skip to content

Instantly share code, notes, and snippets.

@Electrica
Created November 12, 2018 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Electrica/f25af317cd48217450e1ffc65a9576ee to your computer and use it in GitHub Desktop.
Save Electrica/f25af317cd48217450e1ffc65a9576ee to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$(document).on('change', '#mse2_sort', function() {
var selected = $(this).find('option:selected');
var sort = selected.data('sort');
sort += mse2Config.method_delimeter + selected.val();
mse2Config.sort = sort;
mSearch2.submit();
});
});
@Electrica
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment