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

Bug #1146: Prevent users from creating a VDC when no zones have been defined.

(cherry picked from commit 443d7aa00c6ec2bacb4678e3d2b762a96b4b0fdd)
This commit is contained in:
Hector Sanjuan 2012-02-28 14:46:35 +01:00 committed by Ruben S. Montero
parent 625908025c
commit 38269de9b0

View File

@ -516,6 +516,10 @@ function setupCreateVDCDialog(){
function openCreateVDCDialog(){
var dialog = $('div#create_vdc_dialog')
if (!zones_select){
notifyError(tr("No zones defined: You need to create at least 1 zone before creating an VDC"));
return false;
};
$('select#zoneid',dialog).html(zones_select);
$('select#zoneid',dialog).trigger("change");
$('#vdc_available_hosts_list',dialog).empty();