Guest User

Untitled

a guest
Nov 19th, 2019
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('.selectPrductSort1').click(function()
  2. {
  3. var requestSortProducts = '{$request}';
  4. var splitData = $(this).val().split(':');
  5. document.location.href = requestSortProducts + ((requestSortProducts.indexOf('?') < 0) ? '?' : '&') + 'orderby=' + splitData[0] + '&orderway=' + splitData[1];
  6. });
  7. $('.selectPrductSort').click(function()
  8. {
  9. var requestSortProducts = '{$request}';
  10. var splitData = $(this).val().split(':');
  11. document.location.href = requestSortProducts + ((requestSortProducts.indexOf('?') < 0) ? '?' : '&') + 'orderby=' + splitData[0] + '&orderway=' + splitData[1];
  12. });
RAW Paste Data