Wedge

Public area => The Pub => Features => Topic started by: Dragooon on February 9th, 2013, 06:23 AM

Title: AJAX Likes
Post by: Dragooon on February 9th, 2013, 06:23 AM
I'd really like that, it's kind of annoying having to re-load pages after a like
Title: Re: AJAX Likes
Post by: Arantor on February 9th, 2013, 06:24 AM
The backend already supports it, I just need to write the client JS for it. It's been how many months already?
Title: Re: AJAX Likes
Post by: Dragooon on February 9th, 2013, 06:27 AM
Quote from Arantor on February 9th, 2013, 06:24 AM
The backend already supports it, I just need to write the client JS for it. It's been how many months already?
Few from what I can gather, and a few hundred annoyed faces from me as well :P. I was about to do this before I forgot about it.
Title: Re: AJAX Likes
Post by: Arantor on February 9th, 2013, 06:28 AM
Eh, I wrote likes months and months ago. I even wrote it so it would return a template to inject with all the appropriate markup to just insert with a little jQuery - I just haven't ever gotten around to implementing it for some insane reason.
Title: Re: AJAX Likes
Post by: Arantor on February 9th, 2013, 07:18 PM
It's in SVN now :P
Title: Re: AJAX Likes
Post by: Dismal Shadow on February 9th, 2013, 07:38 PM
What the...that fast? :p
Title: Re: AJAX Likes
Post by: Arantor on February 9th, 2013, 07:40 PM
Most of the work was already done anyway. It really was a case of writing the JS for it and just tidying up and minor bug fixes.

/mehas had a busy day, bug fixes, some software reviewing, writing this, arranging theatre tickets, assembling a chair... and I only got out of bed a few hours ago...
Title: Re: AJAX Likes
Post by: Arantor on February 10th, 2013, 06:56 PM
Guess I need to AJAXify thought likes now too? :angel:
Posted: February 10th, 2013, 06:40 PM

:^^;: Means extra bytes on the front page... since I'd need to put them inside a container, they currently aren't in one the way they were for the post likes. And the code will be different in terms of finding the ID, but that's no biggie.
Title: Re: AJAX Likes
Post by: Dragooon on February 11th, 2013, 07:33 AM
Awesome :D
Title: Re: AJAX Likes
Post by: Dragooon on February 11th, 2013, 07:54 AM
Since this is somewhat relevant, why not make the Like button show on hover as well?
Title: Re: AJAX Likes
Post by: Arantor on February 11th, 2013, 05:34 PM
I don't know why I didn't :/
Title: Re: AJAX Likes
Post by: Arantor on February 11th, 2013, 06:35 PM
Actually, yes I do. I wanted the thumb-up to be added to the sprite image where all the other button icons are... assuming they're still a sprited image.
Title: Re: AJAX Likes
Post by: MultiformeIngegno on February 11th, 2013, 06:47 PM
Works like a charm! :D

EDIT: Did we talk about ajaxing quick reply too?
Title: Re: AJAX Likes
Post by: Arantor on February 11th, 2013, 07:03 PM
No, we didn't, and there are all sorts of issues with doing that, though far less than there used to be. Not everything needs to have AJAX crammed up its arse like a rocket.

Notably, if you have it set to return to the board rather than the topic, you don't really want AJAX ;)
Title: Re: AJAX Likes
Post by: Dragooon on February 12th, 2013, 07:28 AM
Quote from Arantor on February 11th, 2013, 06:35 PM
Actually, yes I do. I wanted the thumb-up to be added to the sprite image where all the other button icons are... assuming they're still a sprited image.
What does that have to do with it being visible only on hover?
Title: Re: AJAX Likes
Post by: Arantor on February 12th, 2013, 04:37 PM
By making it button like the others ;)

I didn't see any point inheriting only part of the behaviour.