Uploaded image for project: 'Skin factory'
  1. Skin factory
  2. SKINFACTORY-92

Disable "allowTransparent" in ColorSelectorMenu will never work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • None
    • None

      this.add(Ext.create("Ametys.form.field.ColorSelector", {
      			listColors: listColors,
      			currentColor: this._formatColorToValue(color),
      			allowTransparent: this.getInitialConfig("allowTransparent") || true,
      			callback: Ext.bind(this._onSelectColor, this)
      		}));
      

      false || true will be always equals to true ...

      Ametys.form.field.ColorSelector waits for a boolean, so the string "false" also does not work. The transparent button is always displayed.

            glefebvre Grégory Lefebvre (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: