mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
temporary fix on _purl, using $().val() instead of view binding
This commit is contained in:
@@ -74,7 +74,7 @@ get('/:uidParam?', function(page, model, _arg) {
|
|||||||
|
|
||||||
ready(function(model) {
|
ready(function(model) {
|
||||||
var poormanscron, setupSortable, step, tour, type, _i, _j, _len, _len1, _ref1, _ref2;
|
var poormanscron, setupSortable, step, tour, type, _i, _j, _len, _len1, _ref1, _ref2;
|
||||||
model.set('_purl', window.location.origin + '/' + model.get('_userId'));
|
$('#purl-link').val(window.location.toString() + model.get('_userId'));
|
||||||
$('[rel=popover]').popover();
|
$('[rel=popover]').popover();
|
||||||
model.on('set', '*', function() {
|
model.on('set', '*', function() {
|
||||||
return $('[rel=popover]').popover();
|
return $('[rel=popover]').popover();
|
||||||
|
|||||||
@@ -70,7 +70,8 @@ get '/:uidParam?', (page, model, {uidParam}) ->
|
|||||||
|
|
||||||
ready (model) ->
|
ready (model) ->
|
||||||
|
|
||||||
model.set('_purl', (window.location.origin + '/' + model.get('_userId')))
|
# FIXME weirdest thing: doing model.set('_purl',...) and binding {_purl} in the view does not work
|
||||||
|
$('#purl-link').val(window.location.toString() + model.get('_userId'))
|
||||||
|
|
||||||
$('[rel=popover]').popover()
|
$('[rel=popover]').popover()
|
||||||
#TODO: this isn't very efficient, do model.on set for specific attrs for popover
|
#TODO: this isn't very efficient, do model.on set for specific attrs for popover
|
||||||
@@ -109,7 +110,7 @@ ready (model) ->
|
|||||||
content: step.content
|
content: step.content
|
||||||
placement: step.placement
|
placement: step.placement
|
||||||
tour.start()
|
tour.start()
|
||||||
|
|
||||||
model.on 'set', '_user.tasks.*.completed', (i, completed, previous, isLocal, passed) ->
|
model.on 'set', '_user.tasks.*.completed', (i, completed, previous, isLocal, passed) ->
|
||||||
return if passed? && passed.cron # Don't do this stuff on cron
|
return if passed? && passed.cron # Don't do this stuff on cron
|
||||||
direction = () ->
|
direction = () ->
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<p>Authentication isn't yet available (<a href="https://github.com/lefnire/habitrpg#how-do-i-log-in--save-my-data">follow progress here</a>),<br/>
|
<p>Authentication isn't yet available (<a href="https://github.com/lefnire/habitrpg#how-do-i-log-in--save-my-data">follow progress here</a>),<br/>
|
||||||
In the meantime a persistent URL can be used accross <br/>
|
In the meantime a persistent URL can be used accross <br/>
|
||||||
browsers to access your data. Bookmark the following URL.</p>
|
browsers to access your data. Bookmark the following URL.</p>
|
||||||
<input type=text class=input-xlarge value="{_purl}" onClick="$(this).select();"/>
|
<input id="purl-link" type=text class=input-xlarge value="" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--<% if current_user %>-->
|
<!--<% if current_user %>-->
|
||||||
|
|||||||
Reference in New Issue
Block a user