Commit Graph

8 Commits

Author SHA1 Message Date
Dominik Csapak
a1304e1e5e fix #1317: check wizard form also on validitychange
with the commit
    40342aa6c4
we introduced a validator on the guestidselector, but did not
notice that the wizard checks the validity on the field change event,
but the selector gets valid/invalid in an api callback(so a little later)

with this patch, we now validate the field correctly with validate()
and also listen on the validitychange event to catch it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-27 08:33:50 +02:00
Dietmar Maurer
f677074b47 add activeTitle helper 2016-11-10 11:33:53 +01:00
Emmanuel Kasper
84bfba3e28 Add support for onlineHelp in Creation Wizard
Inside a wizard, switching to a new tab will fire
the 'activate' event to the new tab, causing
the inputPanel of this tab to display its help in
the wizard window.
2016-06-01 12:32:23 +02:00
Dominik Csapak
dd8988e8a0 fix wizard validity logic
we always checked the validity of the panels of the wizard,
when the event validitychange of a subelement triggered,
sadly this does not always happen

for example:

when switching back and forth between 'cdrom' and iso
while having no valid iso selected, the validitchange does not
trigger for the combogrids

instead we listen to the 'change' event, then the check will
be executed at the right time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-22 10:29:41 +02:00
Emmanuel Kasper
3c46a9a776 Do not disable a invalid previous tab, as this make the tab fields valid
disable_at() iterates over all the fields of the previously selected
tab and disables them
however disabling an input field makes it valid for validation purposes. I can't see a reason why disabling the tab fields
is needed, since the tab already hidden
and after testing, it seems safe to remove this call

this fix a problem when going back and forth in the wizard would
make some fields uneditable for the wrong reason
2016-04-12 17:11:02 +02:00
Emmanuel Kasper
ad07dcb380 Enlarge Wizard window vertically to accomodate all our LXC settings
Without this, the summary grid in the end of the LXC creation
wizard needs to be scrolled to see some settings.

Note that we still want to use a fixed height, so that all wizard
panels have the same height and next/previous buttons
are always displayed at the same place.
2016-03-15 16:34:37 +01:00
Emmanuel Kasper
60575f19e5 use Ext.apply() instead of Ext.applyIf() to properly load child items 2016-03-15 16:34:17 +01:00
Dietmar Maurer
bac5bd135c rename manager5 to manager6 2016-01-22 11:24:10 +01:00