Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch allows Galleria's debug option to be disabled via the Galleria option-sets configuration user interface. It is a lot like #1301894: Add support for theme-specific options but the debug
option applies regardless of which theme is used.
debug
can not be set via the existing "custom" options because Galleria checks it's value strictly:
if ( options && options.debug === false ) {
And neither an empty string (''
) or the zero character ('0'
) evaluate === false
to true
.
Comment | File | Size | Author |
---|---|---|---|
debug.patch | 760 bytes | Bevan |
Comments
Comment #1
kroimon CreditAttribution: kroimon commentedWell, you could have typed in
true
orfalse
which automagically gets converted into a boolean value ;-)But thanks for the patch, I just committed it, so it is in the next -dev version, which should be available in a few hours!
Comment #2
kroimon CreditAttribution: kroimon commentedComment #3
Bevan CreditAttribution: Bevan commentedDoh! That feature really needs better documentation in the UI! :)
Comment #4
kroimon CreditAttribution: kroimon commentedYeah, you're probably right.
Re-opening this so I remember to add a short description text next to the custom option input field and maybe some lines in the readme file.
Edit: You're welcome to provide a patch for that ;-)
Comment #5
kroimon CreditAttribution: kroimon commentedClosing this with commit b9622591: