Skip to content

Commit

Permalink
Merge pull request #664 from FrozenNode/dev
Browse files Browse the repository at this point in the history
Merge 4.12.1 into master
  • Loading branch information
David Mathews committed Sep 2, 2014
2 parents f2b50f8 + 912e570 commit 346105f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### 4.12.1
- Bugfix: Revert Merge #601 and adds back in select2 for filter booleans due to 3 needed options True, False, Both
- Bugfix: Fix Js for non numeric ids

### 4.12.0
- Added CKEditor to composer to keep updated
- Added Scrollable Data Table ranther than dropping the columns
Expand Down
6 changes: 6 additions & 0 deletions public/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
* object
*/
listOptions: {},

/**
* The options for booleans
* array
*/
boolOptions: [{id: 'true', text: 'true'}, {id: 'false', text: 'false'}]
},

/*
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ Administrator is released under the MIT License. See the LICENSE file for detail

## Changelog

### 4.12.1
- Bugfix: Revert Merge #601 and adds back in select2 for filter booleans due to 3 needed options True, False, Both
- Bugfix: Fix Js for non numeric ids

### 4.12.0
- Added CKEditor to composer to keep updated
- Added Scrollable Data Table ranther than dropping the columns
Expand Down
2 changes: 1 addition & 1 deletion src/views/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
adminData = {
primary_key: "<?php echo $primaryKey ?>",
<?php if ($itemId !== null) {?>
id: <?php echo $itemId ?>,
id: "<?php echo $itemId ?>",
<?php } ?>
rows: <?php echo json_encode($rows) ?>,
rows_per_page: <?php echo $dataTable->getRowsPerPage() ?>,
Expand Down
4 changes: 2 additions & 2 deletions src/views/templates/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!-- /ko -->

<!-- ko if: type === 'bool' -->
<input type="checkbox" value="1" data-bind="checked: value, attr: {id: field_id}" />
<input type="hidden" data-bind="value: value, attr: {id: field_id}, select2: {data: {results: $root.boolOptions}}" />
<!-- /ko -->

<!-- ko if: type === 'enum' -->
Expand Down Expand Up @@ -82,4 +82,4 @@
<!-- /ko -->
</div>
<!-- /ko -->
</div>
</div>

0 comments on commit 346105f

Please sign in to comment.