diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index 8899a965fe..3a0682422b 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -2282,7 +2282,7 @@ celerity_register_resource_map(array( ), 'javelin-behavior-ponder-votebox' => array( - 'uri' => '/res/d8c973a2/rsrc/js/application/ponder/behavior-votebox.js', + 'uri' => '/res/c28daa12/rsrc/js/application/ponder/behavior-votebox.js', 'type' => 'js', 'requires' => array( diff --git a/webroot/rsrc/js/application/ponder/behavior-votebox.js b/webroot/rsrc/js/application/ponder/behavior-votebox.js index f72d17a1bf..9bdcd28e52 100644 --- a/webroot/rsrc/js/application/ponder/behavior-votebox.js +++ b/webroot/rsrc/js/application/ponder/behavior-votebox.js @@ -16,6 +16,8 @@ JX.behavior('ponder-votebox', function(config) { var data = e.getNodeData('ponder-votable'); if (data.vote != vote) { + // Remove the user's current vote, if they have one. + data.count -= data.vote; data.vote = vote; data.count += vote; } else {