Remove custom reportAdmin css overrides

This commit is contained in:
Paul Clarke 2016-09-15 15:44:03 +12:00
parent b2f3902996
commit 9cee3c25fb
2 changed files with 2 additions and 7 deletions

View File

@ -242,7 +242,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
$actions = new FieldList();
$form = new Form($this, "EditForm", $fields, $actions);
$form->addExtraClass('cms-edit-form cms-panel-padded center ' . $this->BaseCSSClasses());
$form->addExtraClass('panel panel--padded panel--scrollable cms-edit-form cms-panel-padded' . $this->BaseCSSClasses());
$form->loadDataFrom($this->request->getVars());
$this->extend('updateEditForm', $form);

View File

@ -6,7 +6,7 @@
$.entwine('ss', function($){
$('.ReportAdmin .cms-edit-form').entwine({
onsubmit: function(e) {
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
params = this.find(':input[name^=filters]').serializeArray();
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
if(params) url = $.path.addSearchParams(url, $.param(params));
@ -14,10 +14,5 @@
return false;
}
});
$('.ReportAdmin').css({
'overflow-y': 'scroll',
'padding-top': 0
});
});
})(jQuery);