fix to favourite
Showing
5 changed files
with
4 additions
and
2 deletions
| ... | @@ -22978,8 +22978,9 @@ | ... | @@ -22978,8 +22978,9 @@ |
| 22978 | } | 22978 | } |
| 22979 | } | 22979 | } |
| 22980 | }); | 22980 | }); |
| 22981 | $('.favourite').on('click', function (e) { | 22981 | $(document).on('click', '.favourite', function (e) { |
| 22982 | e.preventDefault(); | 22982 | e.preventDefault(); |
| 22983 | console.log("PREVENTED DEFAULT?"); | ||
| 22983 | if ($(this).attr('disabled')) { | 22984 | if ($(this).attr('disabled')) { |
| 22984 | return; | 22985 | return; |
| 22985 | } | 22986 | } | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -75,8 +75,9 @@ jQuery(document).ready(function($) { | ... | @@ -75,8 +75,9 @@ jQuery(document).ready(function($) { |
| 75 | } | 75 | } |
| 76 | }); | 76 | }); |
| 77 | 77 | ||
| 78 | $('.favourite').on('click', function(e) { | 78 | $(document).on('click', '.favourite', function(e) { |
| 79 | e.preventDefault(); | 79 | e.preventDefault(); |
| 80 | console.log("PREVENTED DEFAULT?"); | ||
| 80 | if($(this).attr('disabled')) { | 81 | if($(this).attr('disabled')) { |
| 81 | return; | 82 | return; |
| 82 | } | 83 | } | ... | ... |
-
Please register or sign in to post a comment