Skip to content

Commit

Permalink
Data + minor UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbogoevici authored and pmuir committed May 28, 2012
1 parent eddbf9a commit 74e2e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/main/resources/import.sql
Expand Up @@ -340,8 +340,10 @@ insert into event (id, name, description, picture_id, category_id, major) values
insert into show (id, event_id, venue_id, layout_id) values (1, 1, 1, 1);
insert into performance (id, show_id, date) values (1, 1, '2011-01-01 19:00:00');
insert into performance (id, show_id, date) values (2, 1, '2011-01-02 19:00:00');
insert into performance (id, show_id, date) values (3, 1, '2011-01-03 19:30:00');
insert into performance (id, show_id, date) values (4, 1, '2011-01-04 19:30:00');

insert into show (id, event_id, venue_id, layout_id) values (2, 1, 2, 2);
insert into performance (id, show_id, date) values (3, 2, '2011-01-03 19:30:00');
insert into performance (id, show_id, date) values (4, 2, '2011-01-04 19:30:00');

insert into TicketCategory (id, description) values (1, 'Adult');
insert into TicketCategory (id, description) values (2, 'Child 0-14yrs');
Expand Down
5 changes: 2 additions & 3 deletions src/main/webapp/events.html
Expand Up @@ -23,9 +23,8 @@
}
function showDetails(eventId) {
$.getJSON("rest/events/" + eventId, function (event) {
console.log(event.description.activeRevision.content)
$("#eventDetails").empty().append(event.description.content)

$("#eventDetails").empty()
$("#eventDetails").append("<img src='rest/media/"+event.picture.id + "'/><p/>" + event.description)
})
$.getJSON("rest/shows?event=" + eventId, function (shows) {
$("#showDetails").empty()
Expand Down

0 comments on commit 74e2e2b

Please sign in to comment.