mirror of https://github.com/apache/cloudstack.git
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cloudstack into disk_io_throttling
This commit is contained in:
commit
8da34d2964
|
|
@ -90,6 +90,7 @@ public class Upgrade410to420 implements DbUpgrade {
|
|||
//First drop if it exists. (Due to patches shipped to customers some will have the index and some wont.)
|
||||
List<String> indexList = new ArrayList<String>();
|
||||
s_logger.debug("Dropping index i_alert__last_sent if it exists");
|
||||
indexList.add("last_sent"); // in 4.1, we created this index that is not in convention.
|
||||
indexList.add("i_alert__last_sent");
|
||||
DbUpgradeUtils.dropKeysIfExist(conn, "alert", indexList, false);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public class LibvirtStorageVolumeDef {
|
|||
storageVolBuilder.append("<name>" + _volName + "</name>\n");
|
||||
if (_volSize != null) {
|
||||
storageVolBuilder
|
||||
.append("<capacity >" + _volSize + "</capacity>\n");
|
||||
.append("<capacity>" + _volSize + "</capacity>\n");
|
||||
}
|
||||
storageVolBuilder.append("<target>\n");
|
||||
storageVolBuilder.append("<format type='" + _volFormat + "'/>\n");
|
||||
|
|
|
|||
|
|
@ -320,8 +320,8 @@
|
|||
title: 'label.guest.networks',
|
||||
listView: {
|
||||
actions: {
|
||||
add: { //add Isolated guest network (can't add Shared guest network here)
|
||||
label: 'Add Isolated Guest Network',
|
||||
add: {
|
||||
label: 'Add Isolated Guest Network with SourceNat',
|
||||
|
||||
preFilter: function(args) { //Isolated networks is only supported in Advanced (SG-disabled) zone
|
||||
if(args.context.zoneType != 'Basic')
|
||||
|
|
@ -331,8 +331,7 @@
|
|||
},
|
||||
|
||||
createForm: {
|
||||
title: 'Add Isolated Guest Network',
|
||||
desc: 'Add Isolated Guest Network with SourceNat',
|
||||
title: 'Add Isolated Guest Network with SourceNat',
|
||||
fields: {
|
||||
name: { label: 'label.name', validation: { required: true }, docID: 'helpGuestNetworkName' },
|
||||
displayText: { label: 'label.display.text', validation: { required: true }, docID: 'helpGuestNetworkDisplayText'},
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@
|
|||
var projects = args.data;
|
||||
|
||||
$(projects).map(function(index, project) {
|
||||
var $option = $('<option>').val(project.id);
|
||||
var $option = $('<option>').val(_s(project.id));
|
||||
|
||||
$option.html(project.displaytext ? project.displaytext : project.name);
|
||||
$option.html(_s(project.displaytext ? project.displaytext : project.name));
|
||||
$option.appendTo($projectSelect);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -304,14 +304,14 @@
|
|||
var $formDesc = $('<div>').addClass('form-desc');
|
||||
var $projectName = $('<div>').addClass('field name')
|
||||
.append($('<label>').attr('for', 'project-name').html(_l('label.project.name')))
|
||||
.append($('<input>').addClass('required').attr({
|
||||
.append($('<input>').addClass('required disallowSpecialCharacters').attr({
|
||||
type: 'text',
|
||||
name: 'project-name',
|
||||
id: 'project-name'
|
||||
}));
|
||||
var $projectDesc = $('<div>').addClass('field desc')
|
||||
.append($('<label>').attr('for', 'project-desc').html(_l('label.display.text')))
|
||||
.append($('<input>').attr({
|
||||
.append($('<input>').addClass('disallowSpecialCharacters').attr({
|
||||
type: 'text',
|
||||
name: 'project-display-text',
|
||||
id: 'project-desc'
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
$($form.serializeArray()).each(function() {
|
||||
var dataItem = data[this.name];
|
||||
var value = this.value.toString();
|
||||
var value = _s(this.value.toString());
|
||||
|
||||
if (options.escapeSlashes) {
|
||||
value = value.replace(/\//g, '__forwardSlash__');
|
||||
|
|
|
|||
Loading…
Reference in New Issue