diff --git a/website/public/API/edit_friendship.php b/website/public/API/edit_friendship.php deleted file mode 100644 index 52aacf5..0000000 --- a/website/public/API/edit_friendship.php +++ /dev/null @@ -1,31 +0,0 @@ - $friend) { $friendshipStatus = getFriendshipStatus($friend->userID); - - if ($limit != 0 && $i >= $limit) - $extra = "extra-friend-item"; - else - $extra = ""; ?>
  • @@ -60,15 +49,13 @@ foreach($friends as $i => $friend) {
    1) { + if ($friendshipStatus == 2) { + $denyName = "Annuleer"; + } else { + $denyName = "Weiger"; + } ?> -
    - - +
    @@ -76,11 +63,19 @@ foreach($friends as $i => $friend) { onclick="editFriendship('userID ?>', 'accept')" class='accept-notification' value='1'> - + Accepteer + +
    $friend) { $limit) { - ?> -
  • - Meer vrienden... -
  • - diff --git a/website/public/bits/group-item.php b/website/public/bits/group-item.php index 0a5831c..92eccfc 100644 --- a/website/public/bits/group-item.php +++ b/website/public/bits/group-item.php @@ -22,17 +22,3 @@ foreach($groups as $i => $group) { -
  • -
    - - - -
    -
  • diff --git a/website/public/js/header.js b/website/public/js/header.js index 8d91d95..9889bdb 100644 --- a/website/public/js/header.js +++ b/website/public/js/header.js @@ -1,25 +1,19 @@ $(document).ready(function() { - $("#own-profile-picture").click(function() { - if($("#notification-center").css('right') == "-256px") { - $(".content").animate({ - marginRight: "256px" - }, 500); - $(".chat-right").animate({ - width: $(".chat-right").width() - 266 - }, 500); - $("#notification-center").animate({ - right: "0px" - }, 500); + + // Toggle menu + $("#own-profile-picture, #open-notifications").click(function() { + if ($("#notification-center").css('right') == "-256px") { + // Make the menu visible and move the content to the left. + $("#chat-history").width("calc(100% - 587px)"); + $(".modal").width("calc(100% - 512px)"); + $(".content").css("margin-right", "256px"); + $("#notification-center").css("right", "0px"); } else { - $(".chat-right").animate({ - width: $(".chat-right").width() + 266 - }, 500); - $(".content").animate({ - marginRight: "0px" - }, 500); - $("#notification-center").animate({ - right: "-256px" - }, 500); + // Make the menu invisible and move the content to the right. + $("#chat-history").width("calc(100% - 331px)"); + $(".modal").width("calc(100% - 256px)"); + $(".content").css("margin-right", "0px"); + $("#notification-center").css("right", "-256px"); } }); }); diff --git a/website/public/js/masonry.js b/website/public/js/masonry.js index 6b91e4b..f30139c 100644 --- a/website/public/js/masonry.js +++ b/website/public/js/masonry.js @@ -62,10 +62,11 @@ function masonry(mode) { if(mode == 1) { $postInput = $("
    "); - $form = $postInput.append($("
    ")); + $form = $(""); + $postInput.append($form); - $form.append($("")); - $form.append($("
    + + +
    diff --git a/website/views/profile.php b/website/views/profile.php index 4a9c116..54f028d 100644 --- a/website/views/profile.php +++ b/website/views/profile.php @@ -44,61 +44,6 @@
    - - - - - - - - -fetch()) { -// $nicetime = nicetime($post["creationdate"]); -// echo " -//
    -//

    ${post["title"]}

    -//

    ${post["content"]}

    -//

    ${nicetime} geplaatst.

    -//
    -// "; -// } -// ?> - - - - - - - - -fetch()) { -// $nicetime = nicetime($post["creationdate"]); -// $postID = $post["postID"]; -// echo " -//
    -//

    ${post["title"]}

    -//

    ${post["content"]}

    -//

    ${nicetime} geplaatst.

    -//
    -// -//
    -//
    -// "; -// } -// ?>
    @@ -131,28 +110,12 @@ $group_count = countSomeGroups($search)->fetchColumn(); ?> -