Skip to content

Commit

Permalink
Corrected the Toggle when the Selected Supremes were clicked
Browse files Browse the repository at this point in the history
Toggle only on the header, not anymore on the buttons (who already have an event)
  • Loading branch information
Gulix committed Jul 20, 2015
1 parent 6b6258c commit 037e0cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion builder/builder.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ <h4 class="modal-title" id="modal-enter-code-label">Enter a Team unique code</h4
$(".btn-unselect-supreme").click(function() { unselect_supreme(getSupremeId("btn-unselect-supreme-", $(this).attr('id')), true); });
$('#btnHideSelectionFooter').click(function() { hide_selection_footer(); });
$('#btnShowSelectionFooter').click(function() { show_selection_footer(); });
$(".supreme-selection").click(function() { toggle_selection_footer(getSupremeId("supreme-selection-", $(this).attr('id'))); });
$(".supreme-selection > .header").click(function()
{
toggle_selection_footer(getSupremeId("supreme-selection-", $(this).parent().attr('id')));
});
supremesModalFilled = true;
load_code_from_url();
},
Expand Down Expand Up @@ -691,6 +694,8 @@ <h4 class="modal-title" id="modal-enter-code-label">Enter a Team unique code</h4

function getSupremeId(strStartId, strId)
{
if (strId === undefined)
return 0;
return strId.substring(strStartId.length);
}

Expand Down

0 comments on commit 037e0cd

Please sign in to comment.