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

Disable "allowTransparent" in ColorSelectorMenu will never work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: