Permalink
Commits on Feb 7, 2014
Commits on Jan 27, 2014
  1. @tomspeak

    BUGFIX: Incorrect logic for showing results

    The logic used was not correct for what we were trying to achieve when checking whether or not to show the results.
    tomspeak committed Jan 27, 2014
  2. @tomspeak

    BUGFIX: incorrect `hasVoted()`call now `canVote()`

    With the new logic implemented, calling hasVoted() here no longer makes sense. Changed to canVote() which gives the user a lot more flexibility.
    tomspeak committed Jan 27, 2014
  3. @tomspeak

    BUGFIX: Incorrect function call for markAsVoted

    Some left over legacy code slipped through when merging. `Poll::markasVoted()` should be called through the `voteHandler` instead of relying on hard coded cookie storing functionality.
    tomspeak committed Jan 27, 2014
  4. @tomspeak

    Merge branch 'vote-abstraction' of https://github.com/TomSpeak/silver…

    …stripe-polls into TomSpeak-vote-abstraction
    
    fixes #20
    
    Conflicts:
    	Readme.md
    	code/Poll.php
    tomspeak committed Jan 27, 2014
Commits on Jan 26, 2014
  1. Merge pull request #19 from TomSpeak/3.x-fixes

    Updated for 3.x standards
    committed Jan 26, 2014
  2. Merge pull request #18 from TomSpeak/patch-2

    Removing reference to missing JS file
    committed Jan 26, 2014
  3. Merge pull request #17 from TomSpeak/multi-choice-fix

    FIX Allowing multiple choice votes
    committed Jan 26, 2014
  4. Merge pull request #16 from TomSpeak/patch-1

    Fixing crash from example code in Readme
    committed Jan 26, 2014
  5. @Leapfrognz

    Add composer file.

    Leapfrognz committed with Jan 10, 2014
Commits on Jan 23, 2014
  1. @tomspeak

    Docs update

    Adding info about the vote handler in docs
    tomspeak committed Jan 23, 2014
  2. @tomspeak

    NEW Abstracting the vote storage layer

    Added an abstraction layer to the voting mechanism so that people can
    extend the module to use their own logic and storage engine for voters.
    
    Now it is possible to add a vote handler that will only allow Members to
    vote (and only vote once) rather than relying on cookies.
    
    Simply change the `Poll.vote_handler_class` config setting to a class
    that extends Vote_Backend and you can define any logic to store and
    validate votes
    tomspeak committed Jan 23, 2014
  3. @tomspeak

    Updated for 3.x standards

    Updated the README and templates to use `$`s before variables
    Updated the Poll to caluclate max and sum from SS_List functions rather
    than raw SQL queries
    tomspeak committed Jan 23, 2014
  4. @tomspeak

    API Deprecating Poll::isVoted

    `Poll::isVoted()` is an unclear function name. We've renamed it to
    `hasVoted`
    tomspeak committed Jan 23, 2014
  5. @tomspeak

    Removing reference to missing JS file

    polls/javascript/polls.js doesn't exist. Removing reference to it
    tomspeak committed Jan 23, 2014
  6. FIX Allowing multiple choice votes

    Currently, if a user selects more than one choice for a multiple choice
    poll only the first choice is recorded.
    
    This is because `PollChoice::addVote()` checks if the user has voted or
    not and only records the vote if they haven't but then it marks them as
    having voted and all subsequent choices will be ignored.
    
    Now we only execute `Poll::markAsVoted()` after all choices are recorded
    Tom Speak committed Jan 23, 2014
Commits on Jan 20, 2014
  1. @tomspeak

    Fixing crash from example code in Readme

    The example code in the read me would cause a deprecated error when trying to load a page.
    tomspeak committed Jan 20, 2014
Commits on Dec 4, 2012
  1. Update docs.

    committed Dec 4, 2012
  2. More cleanup for SS3.0.

    committed Dec 4, 2012
  3. Merge pull request #12 from anselmdk/ss3

    updated to work w. ss3
    committed Dec 4, 2012
  4. Merge pull request #13 from silverstripe-droptables/merge

    Merge from internal project
    committed Dec 4, 2012
Commits on Oct 8, 2012
  1. @halkyon
  2. @halkyon
  3. @halkyon

    BUGFIX: fix test

    committed with halkyon Aug 9, 2011
  4. @anselmdk

    updated to work w. ss3

    anselmdk committed Oct 8, 2012
Commits on Sep 7, 2011
  1. BUGFIX: add more documentation - how to pass a Poll to PollForm (than…

    …ks Jason G. for pointing this out)
    committed Sep 7, 2011
Commits on Aug 4, 2011
  1. MINOR: update readme

    committed Aug 4, 2011
  2. FEATURE: allow redirecting back to anchor, so the page skips to the p…

    …oll. FEATURE: allow editing the total vote number BUGFIX: fix a minor bug with function name
    committed Jul 25, 2011
  3. ENHANCEMENT: update readme

    committed Jul 22, 2011