mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
purl bug fix
This commit is contained in:
@@ -151,7 +151,7 @@ getRoom = function(page, model, userId) {
|
||||
|
||||
ready(function(model) {
|
||||
var endOfDayTally, expModifier, hpModifier, poormanscron, setupSortable, step, tour, type, updateStats, _i, _j, _len, _len1, _ref1, _ref2;
|
||||
model.set('_purl', window.location.href + model.get('_user.id'));
|
||||
model.set('_purl', window.location.origin + '/' + model.get('_user.id'));
|
||||
$('[rel=popover]').popover();
|
||||
model.on('set', '*', function() {
|
||||
return $('[rel=popover]').popover();
|
||||
|
||||
@@ -99,7 +99,7 @@ getRoom = (page, model, userId) ->
|
||||
|
||||
ready (model) ->
|
||||
|
||||
model.set '_purl', window.location.href + model.get('_user.id')
|
||||
model.set '_purl', window.location.origin + '/' + model.get('_user.id')
|
||||
|
||||
$('[rel=popover]').popover()
|
||||
#TODO: this isn't very efficient, do model.on set for specific attrs for popover
|
||||
|
||||
Reference in New Issue
Block a user