Feature Request: save WIP comments if you (accidentally) exit the page
BotB Academy Bug Reports and Feature Requests
 
 
139282
Level 29 Mixist
goluigi
 
 
 
post #139282 :: 2021.03.22 9:33pm
too many times I've accidentally gone to another page while writing some post, or my internet went out when i clicked "submit" while trying to create a post. it would be nice if a "current draft" could be autosaved so i could come back and finish/submit the post without having to retype it all over again
 
 
139285
Level 31 Chipist
kleeder
 
 
 
post #139285 :: 2021.03.22 10:18pm
huh my browser is doing this already. :o if i accidentally close the tab at least and reopen it.
 
 
139291
Level 24 Chipist
Tilde
 
 
 
post #139291 :: 2021.03.23 7:12am :: edit 2021.03.23 7:20am
  
  goluigi liēkd this
my guess is that kleeder's example might be happening because of a browser-specific feature to retain form data. but it's actually not hard at all to just do onchange() on the textarea and tell it to store the draft in cache. depends on puke's design sensibilities i think

probably should make it so it only stores one unsaved message instead of assigning one for every thread. but i have no idea what the standards on that are
 
 
139329
Level 29 Hostist
puke7
 
 
 
post #139329 :: 2021.03.24 5:59pm
  
  doctorn0gloff, Tilde, Xyz, goluigi, argarak, damifortune and MelonadeM liēkd this
dsf asdf asd fasdf asdf asdf asdf asdf
 
 
139330
Level 29 Hostist
puke7
 
 
 
post #139330 :: 2021.03.24 6:02pm :: edit 2021.03.24 6:05pm
  
  Tilde, goluigi, argarak, damifortune and MelonadeM liēkd this
the last post was a test

i think i have this working

its all based on your current machine / browser
aka not tied to your account

uses localStorage
 
 
139332
Level 31 Chipist
damifortune
 
 
 
post #139332 :: 2021.03.24 6:39pm :: edit 2021.03.24 6:39pm
for what it's worth - it saves my comment if i navigate away, but if i navigate away *again* having changed my comment to something else, it still uses the previous comment

like i tested it with "afsdfasfs" and it worked, then changed it to "working for me" and tried again and it still brings back "afsdfasfs"

maybe kind of an edge scenario but i thought i'd mention it :)


edit: also i'm on current google chrome in win10 if that's useful
 
 
139334
Level 29 Hostist
puke7
 
 
 
post #139334 :: 2021.03.24 7:02pm
i just tested that and couldn't recreate what you were saying

might need a hard refresh? ctrl-shift-r?

i tried in both firefox and chrome on win10
 
 
139336
Level 29 Mixist
goluigi
 
 
 
post #139336 :: 2021.03.24 9:16pm :: edit 2021.03.24 9:20pm
  
  Baron Knoxburry liēkd this
hey this seems to work great, thanks! and yeah localStorage is what I was thinking too tbh (this isn't really as necessary cross-machine? lol)

and yeah @dami I can't reproduce what you're saying either. I'm on firefox mobile for android lol
 
 
139339
Level 31 Chipist
damifortune
 
 
 
post #139339 :: 2021.03.24 10:36pm
  
  Tilde, Baron Knoxburry and goluigi liēkd this
i tried again and it works as intended this time (even without hard refreshing), so i'm not sure what happened! perhaps just something happened with chrome after all, thanks for checking though
 
 

LOGIN or REGISTER to add your own comments!