mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
And removing it, dangerous
This commit is contained in:
parent
186bcac166
commit
42610f189e
3 changed files with 0 additions and 14 deletions
|
|
@ -530,10 +530,6 @@ ready(function(model) {
|
|||
exports.toggleDebug = function() {
|
||||
return model.set('_debug', !model.get('_debug'));
|
||||
};
|
||||
exports.loadUserSession = function(e, el) {
|
||||
model.set('_session.userId', model.get('_loadUserId'));
|
||||
return window.location.reload();
|
||||
};
|
||||
exports.revive = function(e, el) {
|
||||
var stats;
|
||||
stats = model.at('_user.stats');
|
||||
|
|
|
|||
|
|
@ -402,10 +402,6 @@ ready (model) ->
|
|||
exports.toggleDebug = ->
|
||||
model.set('_debug', !model.get('_debug'))
|
||||
|
||||
exports.loadUserSession = (e, el) ->
|
||||
model.set('_session.userId', model.get('_loadUserId'))
|
||||
window.location.reload()
|
||||
|
||||
exports.revive = (e, el) ->
|
||||
stats = model.at '_user.stats'
|
||||
stats.set 'hp', 50; stats.set 'lvl', 1; stats.set 'exp', 0; stats.set 'money', 0
|
||||
|
|
|
|||
|
|
@ -66,12 +66,6 @@
|
|||
{#if _debug}
|
||||
<div class="alert">
|
||||
<i class="icon-warning-sign"></i> <b>Debugging Options</b><br/><br/>
|
||||
<form x-bind=submit:loadUserSession>
|
||||
<div class=form-search>
|
||||
<input type=text class=input-medium placeholder="User Id" value={_loadUserId} />
|
||||
<button type=submit class=btn>Load Session</button>
|
||||
</div>
|
||||
</form>
|
||||
<a x-bind=click:poormanscron class="btn">Cron</a>
|
||||
<a x-bind=click:endOfDayTally class="btn">Tally</a>
|
||||
<a x-bind=click:loadDebugDefaults class="btn">Tyler Defaults</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue