Skip to content

Commit

Permalink
fix checkbox select all
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Apr 8, 2016
1 parent d5a67e3 commit 773c9b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ intranet/apps/files/cred.py*
uploads/*
__pycache__
__pycache__/*
localdata
config/nginx/ldap_server.conf
2 changes: 1 addition & 1 deletion intranet/static/js/eighth/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $(function() {

// Set up checkboxes on activity scheduling and other pages
var $selectAllBlocksCheckbox = $(".checkboxes-grid thead input[type='checkbox']")
var $blockCheckboxes = $(".checkboxes-grid tbody td[data-field='scheduled'] input[type='checkbox']");
var $blockCheckboxes = $(".checkboxes-grid tbody td.block-checkbox input[type='checkbox']");

var updateSelectAllCheckbox = function() {
var numChecked = $blockCheckboxes.filter(":checked").length;
Expand Down
2 changes: 1 addition & 1 deletion intranet/templates/eighth/admin/schedule_activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h4>Select an Activity:</h4>

{% for field in form.visible_fields %}
{% if field.name != "cancelled" %}
<td data-field="{{ field.name }}">
<td data-field="{{ field.name }}"{% if field.name == 'scheduled' %} class="block-checkbox"{% endif %}>
{{ field.errors }}
{% if field.name == "rooms" %}
<select id="{{ field.id_for_label }}" name="{{ field.html_name }}" class="remote-source remote-rooms" multiple="multiple" placeholder="{% if not default_rooms %}No default{% else %}{{ default_rooms|join:", " }}{% endif %}">
Expand Down
2 changes: 1 addition & 1 deletion intranet/templates/eighth/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h3>
</thead>
{% for sch in eighth_schedule %}
<tr class="form-row">
<td class="center checkbox">
<td class="center checkbox block-checkbox">
<input type="checkbox" name="block" value="{{ sch.block.id }}" />
</td>
<td>
Expand Down

0 comments on commit 773c9b3

Please sign in to comment.