@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed voting comments bug on Ponder

Summary: When user changed his mind for voting, counting does not work properly. If user vote up first and vote down, vote count must be decreased 2. fixed in javascript file

Test Plan:
http://cihad.phabricator.pompa.la/Q11
user : demo
pass : demodemo

Reviewers: aran, Korvin, epriestley

Reviewed By: epriestley

CC: simsekburak

Differential Revision: https://secure.phabricator.com/D6446

authored by

Cihad OGE and committed by
epriestley
b92acf0e 8eef4a6c

+3 -1
+1 -1
src/__celerity_resource_map__.php
··· 2282 2282 ), 2283 2283 'javelin-behavior-ponder-votebox' => 2284 2284 array( 2285 - 'uri' => '/res/d8c973a2/rsrc/js/application/ponder/behavior-votebox.js', 2285 + 'uri' => '/res/c28daa12/rsrc/js/application/ponder/behavior-votebox.js', 2286 2286 'type' => 'js', 2287 2287 'requires' => 2288 2288 array(
+2
webroot/rsrc/js/application/ponder/behavior-votebox.js
··· 16 16 var data = e.getNodeData('ponder-votable'); 17 17 18 18 if (data.vote != vote) { 19 + // Remove the user's current vote, if they have one. 20 + data.count -= data.vote; 19 21 data.vote = vote; 20 22 data.count += vote; 21 23 } else {