From e4524e09587f42e1d2ae5cffd4f6dd482d74c60d Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 23 Aug 2012 22:54:09 -0400 Subject: [PATCH] temporary fix on _purl, using $().val() instead of view binding --- lib/app/index.js | 2 +- src/app/index.coffee | 5 +++-- views/app/index.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/app/index.js b/lib/app/index.js index 6402b42b43..ad44512295 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -74,7 +74,7 @@ get('/:uidParam?', function(page, model, _arg) { ready(function(model) { 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(); model.on('set', '*', function() { return $('[rel=popover]').popover(); diff --git a/src/app/index.coffee b/src/app/index.coffee index e6ee34e04e..d9be2afb16 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -70,7 +70,8 @@ get '/:uidParam?', (page, model, {uidParam}) -> 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() #TODO: this isn't very efficient, do model.on set for specific attrs for popover @@ -109,7 +110,7 @@ ready (model) -> content: step.content placement: step.placement tour.start() - + model.on 'set', '_user.tasks.*.completed', (i, completed, previous, isLocal, passed) -> return if passed? && passed.cron # Don't do this stuff on cron direction = () -> diff --git a/views/app/index.html b/views/app/index.html index 72205d0bbc..b7f95d3729 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -17,7 +17,7 @@

Authentication isn't yet available (follow progress here),
In the meantime a persistent URL can be used accross
browsers to access your data. Bookmark the following URL.

- +