tips.ui.js 418 B

12345678910111213141516171819
  1. $(document).off('click', '.tipBtn').on('click', '.tipBtn', function(event)
  2. {
  3. const link = $(this).attr('href');
  4. if(typeof link == 'undefined') return true;
  5. event.preventDefault();
  6. $.get(link, function(response)
  7. {
  8. try
  9. {
  10. response = JSON.parse(response);
  11. loadPage(link);
  12. }
  13. catch(e)
  14. {
  15. window.open(link);
  16. }
  17. });
  18. })