Plugin Directory

Changeset 876929


Ignore:
Timestamp:
03/18/2014 02:55:44 AM (12 years ago)
Author:
scotthack
Message:

Fixed Final Four Mismatch Bug

Location:
bracketpress
Files:
43 added
2 edited

Legend:

Unmodified
Added
Removed
  • bracketpress/trunk/bracketpress.php

    r873847 r876929  
    11<?php
    22/*
    3 Plugin Name: BracketPress (Scott Hack Special Edition)
     3Plugin Name: BracketPress
    44Description: Run and score a tournament bracket pool.
    55Author: Scott Hack and Nick Temple
    66Author URI: http://www.bracketpress.com
    7 Version: 1.6.0
     7Version: 1.6.1
    88*/
    99
  • bracketpress/trunk/templates/bracket_edit.js

    r873847 r876929  
    110110
    111111    sel_match = get_sel_match(15);
    112     if (sel_match['winner_id']) set_team(62, 1, sel_match.winner_id);
     112    if (sel_match['winner_id']) set_team(61, 1, sel_match.winner_id);
    113113
    114114    sel_match = get_sel_match(30);
     
    116116
    117117    sel_match = get_sel_match(45);
     118    if (sel_match['winner_id']) set_team(62, 1, sel_match.winner_id);
     119
     120    sel_match = get_sel_match(60);
    118121    if (sel_match['winner_id']) set_team(62, 2, sel_match.winner_id);
    119122
    120     sel_match = get_sel_match(60);
    121     if (sel_match['winner_id']) set_team(61, 1, sel_match.winner_id);
     123
    122124
    123125    sel_match = get_sel_match(61);
     
    449451        // Save the current winner if we have one
    450452        winner = $('#get_team_selector_match61').val();
    451         $('#get_team_selector_match61').html('<option value="0">~Select~</option>');       // clear the select box
     453        //$('#get_team_selector_match61').html('<option value="0">~Select~</option>');       // clear the select box
    452454
    453455        // Add the items
    454         set_team(61, 1, $('#get_team_selector_midwest_match60').val(), winner );
    455         set_team(61, 2, $('#get_team_selector_west_match30').val(), winner );
     456        //set_team(61, 1, $('#get_team_selector_midwest_match60').val(), winner );
     457        //set_team(61, 2, $('#get_team_selector_west_match30').val(), winner );
    456458
    457459        // Save the current winner if we have one
    458460        winner = $('#get_team_selector_match62').val();
    459         $('#get_team_selector_match62').html('<option value="0">~Select~</option>');       // clear the select box
     461        //$('#get_team_selector_match62').html('<option value="0">~Select~</option>');       // clear the select box
    460462
    461463        // Add the items
    462         set_team(62, 1, $('#get_team_selector_south_match15').val(), winner );
    463         set_team(62, 2, $('#get_team_selector_east_match45').val(), winner );
     464       // set_team(62, 1, $('#get_team_selector_south_match15').val(), winner );
     465       // set_team(62, 2, $('#get_team_selector_east_match45').val(), winner );
    464466
    465467        // Clear and create the final round
Note: See TracChangeset for help on using the changeset viewer.