mirror of https://github.com/apache/cloudstack.git
Support a new control for storage tags on the Add Compute Offering and Add Disk Offering windows
This commit is contained in:
parent
0dc5cb4287
commit
4e5dc59218
|
|
@ -19,7 +19,7 @@ ul.token-input-list-facebook {
|
|||
font-size: 12px;
|
||||
font-family: Verdana;
|
||||
min-height: 1px;
|
||||
z-index: 1010;
|
||||
z-index: 2147483647;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #F6F6F6;
|
||||
|
|
@ -91,7 +91,7 @@ div.token-input-dropdown-facebook {
|
|||
cursor: default;
|
||||
font-size: 11px;
|
||||
font-family: Verdana;
|
||||
z-index: 1010;
|
||||
z-index: 2147483647;
|
||||
}
|
||||
|
||||
div.token-input-dropdown-facebook p {
|
||||
|
|
|
|||
|
|
@ -686,7 +686,7 @@ $.TokenList = function (input, url_or_data, settings) {
|
|||
position: "absolute",
|
||||
top: $(token_list).offset().top + $(token_list).outerHeight(),
|
||||
left: $(token_list).offset().left,
|
||||
zindex: 1010
|
||||
zindex: 2147483647
|
||||
})
|
||||
.show();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -305,11 +305,75 @@
|
|||
},
|
||||
storageTags: {
|
||||
label: 'label.storage.tags',
|
||||
docID: 'helpComputeOfferingStorageType'
|
||||
docID: 'helpComputeOfferingStorageType',
|
||||
isTokenInput: true,
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listStorageTags"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.liststoragetagsresponse.storagetag;
|
||||
var tags = [];
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
tags = $.map(item, function(tag) {
|
||||
return {
|
||||
id: tag.name,
|
||||
name: tag.name
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
args.response.success({
|
||||
data: tags,
|
||||
hintText: "Type in part of a storage tag",
|
||||
noResultsText: "No storage tags found"
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
|
||||
args.response.error(errorMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
hostTags: {
|
||||
label: 'label.host.tags',
|
||||
docID: 'helpComputeOfferingHostTags'
|
||||
docID: 'helpComputeOfferingHostTags',
|
||||
isTokenInput: true,
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listHostTags"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.listhosttagsresponse.hosttag;
|
||||
var tags = [];
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
tags = $.map(item, function(tag) {
|
||||
return {
|
||||
id: tag.name,
|
||||
name: tag.name
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
args.response.success({
|
||||
data: tags,
|
||||
hintText: "Type in part of a host tag",
|
||||
noResultsText: "No host tags found"
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
|
||||
args.response.error(errorMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
cpuCap: {
|
||||
label: 'label.CPU.cap',
|
||||
|
|
@ -1754,7 +1818,39 @@
|
|||
},
|
||||
tags: {
|
||||
label: 'label.storage.tags',
|
||||
docID: 'helpDiskOfferingStorageTags'
|
||||
docID: 'helpDiskOfferingStorageTags',
|
||||
isTokenInput: true,
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listStorageTags"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.liststoragetagsresponse.storagetag;
|
||||
var tags = [];
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
tags = $.map(item, function(tag) {
|
||||
return {
|
||||
id: tag.name,
|
||||
name: tag.name
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
args.response.success({
|
||||
data: tags,
|
||||
hintText: "Type in part of a storage tag",
|
||||
noResultsText: "No storage tags found"
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
|
||||
args.response.error(errorMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
isPublic: {
|
||||
label: 'label.public',
|
||||
|
|
|
|||
Loading…
Reference in New Issue