unclecheese / silverstripe-display-logic

The Display Logic module allows you to add conditions for displaying or hiding certain form fields based on client-side behavior.
BSD 3-Clause "New" or "Revised" License
74 stars 71 forks source link

Only include requirements if needed #13

Closed tyrannosaurusjames closed 11 years ago

tyrannosaurusjames commented 11 years ago

Only set the javascript and css requirements if displayLogicCriteria is set.

This also fixes an issue we ran into where we wanted to use display logic in the CMS, but found we were getting javascript errors on the frontend of the site because we weren't using jQuery for the frontend.