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.

CommentFileSizeAuthor
debug.patch760 bytesBevan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kroimon’s picture

debug can not be set via the existing "custom" options because Galleria checks it's value strictly

Well, you could have typed in true or false 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!

kroimon’s picture

Status: Needs review » Fixed
Bevan’s picture

Doh! That feature really needs better documentation in the UI! :)

kroimon’s picture

Status: Fixed » Needs work

Yeah, 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 ;-)

kroimon’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Needs work » Fixed

Closing this with commit b9622591:

Added a short documentation hint about automatic type conversion of boolean values to the README.txt and below custom option fields.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.