only apply js code on relevant pages

This commit is contained in:
Frédéric Péters 2013-12-03 11:09:10 +01:00
parent a73622a17e
commit cb24ef7c29
1 changed files with 3 additions and 0 deletions

View File

@ -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');