mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix grid field showing search without search component added
ref: CWPBUG-133
This commit is contained in:
parent
c3c3145d37
commit
ee6e4968fd
@ -40,16 +40,19 @@
|
|||||||
// multiple relationships via keyboard.
|
// multiple relationships via keyboard.
|
||||||
if(focusedElName) self.find(':input[name="' + focusedElName + '"]').focus();
|
if(focusedElName) self.find(':input[name="' + focusedElName + '"]').focus();
|
||||||
|
|
||||||
var content;
|
// Update filter
|
||||||
if(ajaxOpts.data[0].filter=="show"){
|
if(self.find('.filter-header').length) {
|
||||||
content = '<span class="non-sortable"></span>';
|
var content;
|
||||||
self.addClass('show-filter').find('.filter-header').show();
|
if(ajaxOpts.data[0].filter=="show") {
|
||||||
}else{
|
content = '<span class="non-sortable"></span>';
|
||||||
content = '<button name="showFilter" class="ss-gridfield-button-filter trigger"></button>';
|
self.addClass('show-filter').find('.filter-header').show();
|
||||||
self.removeClass('show-filter').find('.filter-header').hide();
|
} else {
|
||||||
}
|
content = '<button name="showFilter" class="ss-gridfield-button-filter trigger"></button>';
|
||||||
|
self.removeClass('show-filter').find('.filter-header').hide();
|
||||||
|
}
|
||||||
|
|
||||||
self.find('.sortable-header th:last').html(content);
|
self.find('.sortable-header th:last').html(content);
|
||||||
|
}
|
||||||
|
|
||||||
form.removeClass('loading');
|
form.removeClass('loading');
|
||||||
if(successCallback) successCallback.apply(this, arguments);
|
if(successCallback) successCallback.apply(this, arguments);
|
||||||
|
Loading…
Reference in New Issue
Block a user