only apply js code on relevant pages
This commit is contained in:
parent
a73622a17e
commit
cb24ef7c29
|
@ -161,6 +161,9 @@ function select_metatype(elem)
|
|||
}
|
||||
|
||||
(function() {
|
||||
if ($('#criterias-form').length == 0 && $('#pfwbsearchform').length == 0) {
|
||||
return;
|
||||
}
|
||||
$('.portaltype-pfwbgedcollection #contentview-edit').hide();
|
||||
$('.portaltype-pfwbgedcollection #plone-document-byline').hide();
|
||||
$('.portaltype-pfwbgedcollection .QueryWidget').data('fieldname', 'form.widgets.query');
|
||||
|
|
Reference in New Issue