aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getURLOfUser.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-09-22 15:39:32 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-09-22 15:39:32 +0200
commitb88446887a2a238bdf50acf56602c37ffdce83f9 (patch)
tree66c04a0dfb5e3af2ae0deff47ebdb4005adcd934 /public/javascripts/getURLOfUser.js
parentb6206ce765b4330ae6b17b1724f60115fc3807d8 (diff)
Fixed iOS
Diffstat (limited to 'public/javascripts/getURLOfUser.js')
-rw-r--r--public/javascripts/getURLOfUser.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/public/javascripts/getURLOfUser.js b/public/javascripts/getURLOfUser.js
index 04f13ac..fe03bd6 100644
--- a/public/javascripts/getURLOfUser.js
+++ b/public/javascripts/getURLOfUser.js
@@ -2,13 +2,8 @@ var leftPad = require('left-pad')
var getWeek = require('./getWeek')
function getURLOfUsers (weekOffset, type, id) {
- return 'http://' + window.location.host + '/meetingpointProxy/Roosters-AL%2Fdoc%2Fdagroosters%2F' +
- (getWeek() + weekOffset) + '%2F' + type + '%2F' + type + leftPad(id, 5, '0') + '.htm'
+ return `http://${window.location.host}/meetingpointProxy/Roosters-AL%2Fdoc%2Fdagroosters%2F` +
+ `${(getWeek() + weekOffset)}%2F${type}%2F${type}${leftPad(id, 5, '0')}.htm`
}
module.exports = getURLOfUsers
-
-module.exports.CLASS = 'c'
-module.exports.TEACHERS = 't'
-module.exports.ROOMS = 'r'
-module.exports.STUDENTS = 's'