Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/w7cook/OpenBook into laurenyew
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenyew committed Apr 23, 2012
2 parents d078359 + e443623 commit 49bcef7
Show file tree
Hide file tree
Showing 23 changed files with 1,101 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/controllers/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ public static void account_save(User update, String old_password) {

public static void edit_basic(Long userID) {
User user = User.findById(userID);
Profile profile = Profile.find("owner = ?", user).first();
render(profile);
Profile profile = Profile.find("owner = ?", user).first();
render(profile);
}


Expand Down
2 changes: 1 addition & 1 deletion app/controllers/Profiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void updateBio(String bio){
public static void updateInformation(Date birthday, String relationshipStatus, String gender, String interestedIn,
Date anniversary, String language, String religion, String political){
User user = user();
Profile profile = user.profile;
Profile profile = Profile.find("owner = ?", user).first();
profile.religion = religion;
profile.birthday = birthday;
profile.gender = gender;
Expand Down
20 changes: 14 additions & 6 deletions app/views/Application/edit_basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
});
</script>

<script>
$(function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true
});
});
</script>

<div class="globalContentAbout">
<div class="LeftColumnAbout">
<div class="Panel">
Expand Down Expand Up @@ -81,7 +90,7 @@
<tr>
<td><label>&{'profile.interested.in'}:</label></td>
<td>#{select 'gender', value:profile.interestedIn}
#{option 'Blank'}#{/option}
#{option ''}#{/option}
#{option 'Men'}Men#{/option}
#{option 'Women'}Women#{/option}
#{option 'Both'}Both#{/option}
Expand Down Expand Up @@ -153,9 +162,8 @@
#{/if}
#{if profile.interestedIn}
<tr>
<td><label>Interested in:</label>
</td>
<td>${profile.interestedIn}</td>
<td><label>Interested in:</label></td>
<td class="data">${profile.interestedIn}</td>
</tr>
#{/if}
#{if profile.relationshipStatus}
Expand Down Expand Up @@ -357,5 +365,5 @@
</div>
</div>
</div>

</div>
<div class="demo">
</div>
4 changes: 3 additions & 1 deletion app/views/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
<head>
<title>#{get 'title' /}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src=@{'/public/javascripts/jquery-1.6.4.min.js'}></script>
<script src="/public/bootstrap/docs/assets/js/jquery.js"></script>
<script src=@{'/public/javascripts/util.js'}></script>
<script src=@{'/public/javascripts/jquery.autoresize.js'}></script>


<script type="text/javascript" src="/public/javascripts/jquery-ui-1.8.19.custom/js/jquery-ui-1.8.19.custom.min.js"></script>
<script type="text/javascript" src="@{'/public/javascripts/calendarDateInput.js'}"></script>
<script type="text/javascript" src="/public/javascripts/comments.js"></script>
<script type="text/javascript" src="/public/javascripts/jquery.autoresize.js"></script>
Expand Down
4 changes: 4 additions & 0 deletions public/javascripts/jquery-1.7.2.min.js

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

383 changes: 383 additions & 0 deletions public/javascripts/jquery-ui-1.8.19.custom/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 49bcef7

Please sign in to comment.