Changeset f25e8dd in Git for target/classes/static/js


Ignore:
Timestamp:
02/05/22 22:48:19 (3 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
2efe93e
Parents:
5b447b0
Message:

Fixed and added a better front end, improved clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • target/classes/static/js/sharedScript.js

    r5b447b0 rf25e8dd  
    44    var elements = $(".elements")
    55    var elementGrade;
     6
    67
    78    $("#dialog-rating").dialog({
     
    145146                let movieId=$(button).attr("movie-id")
    146147                if (type==='like') {
    147                     $(button).parent().append("<a class='btn btn-primary button-remove-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Избриши од омилена листа</a>")
     148                    $(button).parent().append("<a class='btn btn-warning button-remove-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Избриши од омилена листа</a>")
    148149                    console.log("da")
    149150                }
    150151                else{
    151                     $(button).parent().append("<a class='btn btn-primary button-add-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Додади во омилена листа</a>")
     152                    $(button).parent().append("<a class='btn btn-success button-add-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Додади во омилена листа</a>")
    152153
    153154                }
Note: See TracChangeset for help on using the changeset viewer.