add "emulate next day" debugging button

This commit is contained in:
Tyler Renelle 2013-02-01 14:05:52 -05:00
parent 53d5ae51c5
commit 86ea99c2dc
2 changed files with 8 additions and 0 deletions

View file

@ -307,3 +307,8 @@ ready (model) ->
else
model.set "_view.addFriendError", "User with id #{friendId} not found."
exports.emulateNextDay = ->
yesterday = moment().subtract('days', 1).toString()
user.set 'lastCron', yesterday
window.location.reload()

View file

@ -308,6 +308,9 @@
<!-- Footer -->
<footer class=footer>
<div class=container>
<div class='pull-right'>
<button class='btn' x-bind="click:emulateNextDay">Emulate Next Day</button>
</div>
<div>
<ul>
<li>Copyright &copy; 2012 OCDevel LLC</li>