Corrected post filtering row selection for categories.
This commit is contained in:
parent
e202abc82b
commit
1212cd51f3
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@
|
||||||
$('#filter-categories .selected').removeClass('selected');
|
$('#filter-categories .selected').removeClass('selected');
|
||||||
|
|
||||||
$('#filter-categories .category-row').each(function() {
|
$('#filter-categories .category-row').each(function() {
|
||||||
if ($(this).attr('data-id') === id) {
|
if ($(this).attr('data-id') == id) {
|
||||||
$(this).addClass('selected');
|
$(this).addClass('selected');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -342,7 +342,7 @@
|
||||||
|
|
||||||
if (display) {
|
if (display) {
|
||||||
$.each(this.filterResults, function(index, category) {
|
$.each(this.filterResults, function(index, category) {
|
||||||
if (category.id === id) {
|
if (category.id == id) {
|
||||||
this.display(category);
|
this.display(category);
|
||||||
$('#edit-category, #delete-category').prop('disabled', false);
|
$('#edit-category, #delete-category').prop('disabled', false);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue