Changeset 2efe93e in Git for src/main/resources/static/js
- Timestamp:
- 02/06/22 20:01:15 (3 years ago)
- Branches:
- main
- Children:
- 42d565b
- Parents:
- f25e8dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/sharedScript.js
rf25e8dd r2efe93e 146 146 let movieId=$(button).attr("movie-id") 147 147 if (type==='like') { 148 $(button).parent().append("<a class='b tn btn-warning button-remove-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Избриши од омилена листа</a>")148 $(button).parent().append("<a class='bottom-heart btn btn-danger button-remove-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">💔</a>") 149 149 console.log("da") 150 150 } 151 151 else{ 152 $(button).parent().append("<a class='b tn btn-success button-add-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Додади во омилена листа</a>")152 $(button).parent().append("<a class='bottom-heart btn btn-success button-add-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">❤</a>") 153 153 154 154 }
Note:
See TracChangeset
for help on using the changeset viewer.