Skip to content
This repository has been archived by the owner on Jan 13, 2019. It is now read-only.

Commit

Permalink
remove absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tmochida committed Mar 7, 2016
1 parent cdd9e7a commit ae9b65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions website/static/website/js/office_hours.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $(document).ready(function () {

var officers = JSON.parse(officeHours);
var officerList = $('.officers-oh');
var tileString = '<li class=\"tile\">\r\n <div class=\"officer-oh\">\r\n <img class=\"image normal\" src=\"http:\/\/upe.berkeley.edu\/media\/profile_images\/spock.jpg\">\r\n <img class=\"image soy\">\r\n <div class=\"info\">\r\n <span class=\"name\"><\/span>\r\n <span class=\"date\"><\/span>\r\n <ul class=\"classes-skills\">\r\n <\/ul>\r\n <\/div>\r\n <\/div>\r\n<\/li>';
var tileString = '<li class=\"tile\">\r\n <div class=\"officer-oh\">\r\n <img class=\"image normal\" src=\"\/media\/profile_images\/spock.jpg\">\r\n <img class=\"image soy\">\r\n <div class=\"info\">\r\n <span class=\"name\"><\/span>\r\n <span class=\"date\"><\/span>\r\n <ul class=\"classes-skills\">\r\n <\/ul>\r\n <\/div>\r\n <\/div>\r\n<\/li>';
var tileTemplate = $(tileString);

officers.sort(function(x, y) {
Expand All @@ -25,8 +25,8 @@ $(document).ready(function () {
var courses = '';
var hours = '';

tile.find('.normal').attr('src', 'http://upe.berkeley.edu/media/profile_images/' + officer.name + '.jpg');
tile.find('.soy').attr('src', 'http://upe.berkeley.edu/media/profile_images/Soy - ' + officer.name + '.jpg');
tile.find('.normal').attr('src', '/media/profile_images/' + officer.name + '.jpg');
tile.find('.soy').attr('src', '/media/profile_images/Soy - ' + officer.name + '.jpg');
tile.find('.soy').hide();

for (var j = 0; j < officer.courses.length; j++) {
Expand Down
2 changes: 1 addition & 1 deletion website/templates/website/oh_tile.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<li class="tile">
<div class="officer-oh">
<img class="image normal" src="http://upe.berkeley.edu/media/profile_images/spock.jpg">
<img class="image normal" src="/media/profile_images/spock.jpg">
<img class="image soy">
<div class="info">
<span class="name"></span>
Expand Down

0 comments on commit ae9b65c

Please sign in to comment.