1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Fixes bug #529: Adding image when none is selected.

The mandatory_filter check takes now into account the value of fields of type
"select", so it complains if a mandatory select does not have a value.
This commit is contained in:
Hector Sanjuan 2011-04-01 00:40:43 +02:00 committed by Jaime Melis
parent 1c26c53003
commit fcc6595d67

View File

@ -1098,7 +1098,7 @@ function setupCreateVMDialog(){
var man_items = "."+man_class;
//find enabled mandatory items in this context
man_items = $(man_items+' input:visible',context);
man_items = $(man_items+' input:visible, '+man_items+' select:visible',context);
var r = true;
//we fail it the item is enabled and has no value