| Summary: | How to enable/disable buttons on new dialogs (orion/webui/dialog) | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Szymon Brandys <Szymon.Brandys> |
| Component: | Client | Assignee: | Susan McCourt <susan> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | susan |
| Version: | 2.0 | ||
| Target Milestone: | 2.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Szymon Brandys
Would binding the buttons to a variable work? We could have an id field in the button description. (In reply to comment #1) > Would binding the buttons to a variable work? We could have an id field in > the button description. I thought exactly about something like that :) Fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f0e914a2c9b1dd7503903bc817a4b1d70fcde7a7 Things to know. 1) when something is disabled, set its class to this.DISABLED (defined in Dialog). 2) check this.$myButton.classList.contains(DISABLED) when you get the click. See ImportDialog for an example. |