Improvement to drafts (and posting, actually) I need to do

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #16, on March 22nd, 2012, 04:47 PM »
All I can say is, I kept a textarea open for a while and it didn't save anything. But maybe it was already the case before :)
Then again, I haven't had a 'dirty' draft for over 2 hours -- i.e. back when I last used my iPod to navigate here.
I'm off to take a half-hour break. I'll try to see if it keeps doing it on the iPod!

PS: lol, it's broken I think... I'm not seeing any draft saved, even after typing for a minute or so!
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #17, on March 22nd, 2012, 06:59 PM »
Fixed some of the bugs. Maybe all? Lol I dunno.
Works in Opera AND iOS when it comes to empty posts. No longer triggers anything if empty. If I type something, it triggers.
Doesn't seem to trigger on iOS when typing text.
Ah well.
Posted: March 22nd, 2012, 06:55 PM

And, working!! :)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #19, on March 22nd, 2012, 07:43 PM »
Dunno. That's a possibility.
I'd be most interested in knowing if anyone else's getting the problem I have on my 4.2 -- unresponsive keyboard when I tap a textarea or input box. Because as of now, I have no idea how to fix that...
Posted: March 22nd, 2012, 07:27 PM

Okay, I'm done with my commit -- won't spend more time today on drafts and blog posts, so if you want to look into the 'recent posts first' bugs, please do it... :) (That's valid for anyone ;))

I also didn't touch the menu icon overlay code -- just forgot about it. And I'm still a bit wary of touching that area again... (Just like I was wary about touching Class-CSS.php this morning, as it's grown to be so complex :P)
So, if anyone could remind me to do it later...

Pandos

  • Living on the edge of Wedge
  • Posts: 635
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #23, on March 22nd, 2012, 09:57 PM »
Hmm, it seems to be working for me just fine?

If you happen to post between the first AJAX submission and it coming back, it won't be deleted because it won't have the id to delete. What we could do, potentially, is block posting while sending off the AJAX request, but if there's a problem it's still going to disappear into the aether like that.

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #25, on March 22nd, 2012, 11:05 PM »
Sure, and it's not like the odds are that high of doing it either, maybe just bad luck :/

I'd note that disabling the save button is exactly what WP does when autosaving drafts but of course that's a slightly different context in which to do it.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #26, on May 26th, 2012, 10:03 AM »
Suggesting an improvement for drafts...

I submitted a post and got a "There was a reply..." message and the full post again.
I then got a browser crash while opening Dragonfly. (Thank you, Opera 12...)
I restarted, and my draft only had half of the post.

So my suggestion would be to save the draft automatically when you hit Preview or you get an error message and the full post page.
What do you think...?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #27, on May 26th, 2012, 02:05 PM »
Seems meaningful enough, shouldn't be a big deal - in theory there will already be a draft id to work with at that point. The trick is to seamlessly fold it into the different routes of saving drafts.

Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278