Here is a bit of js that enhances the admin settings form, goes into colorbox_admin_settings.js

  if ($("#edit-colorbox-login").attr('checked')) {
    $("#edit-colorbox-login-form-wrapper").show();
  }
  else {
    $("#edit-colorbox-login-form-wrapper").hide();
  }
  $("#edit-colorbox-login").change(function() {
    if ($("#edit-colorbox-login").attr('checked')) {
      $("#edit-colorbox-login-form-wrapper").show();
    }
    else {
      $("#edit-colorbox-login-form-wrapper").hide();
    }
  });

It just hides the dropdown if the 'Enable for login links' checkbox is unchecked.

Comments

frjo’s picture

Assigned: Unassigned » frjo
Status: Active » Needs review

Good suggestion, thanks!

Have committed a slightly different solution for it to 6-dev now. Please try it out.

hutch’s picture

A better solution, I wasn't aware of the builtin js-hide class
Thanks!

frjo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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