diff --git a/ui/scripts/docs.js b/ui/scripts/docs.js index 0ccedc5ddb1..3356ecb866e 100755 --- a/ui/scripts/docs.js +++ b/ui/scripts/docs.js @@ -15,6 +15,25 @@ // specific language governing permissions and limitations // under the License. cloudStack.docs = { + + //IP Reservation tooltips + helpIPReservationCidr: { + desc:'Edit CIDR when you want to configure IP Reservation in isolated guest Network', + externalLink:'' + + }, + + helpIPReservationNetworkCidr:{ + desc:'The CIDR of the entire network when IP reservation is configured', + externalLink:' ' + + }, + + helpReservedIPRange:{ + desc:'The IP Range which is not used by CloudStack to allocate to Guest VMs.Can be used for Non Cloudstack purposes.', + externalLink:'' + }, + // Add account helpAccountUsername: { desc: 'Any desired login ID. Must be unique in the current domain. The same username can exist in other domains, including sub-domains.', diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index f0cc8fd60b2..db7f5240e20 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -338,6 +338,8 @@ $detailView.find('.tagger').find('input[type=text]').val(''); + $('div.container div.panel div.detail-group .details .main-groups').find('.cidr').toolTip({ docID:'helpIPReservationCidr' , mode:'hover' , tooltip:'.tooltip-box' }); + var convertInputs = function($inputs) { // Save and turn back into labels $inputs.each(function() { @@ -489,7 +491,11 @@ return true; }); - + + $('div.container div.panel div.detail-group .details .main-groups').find('.reservediprange').toolTip({ docID:'helpReservedIPRange' , mode:'hover' , tooltip:'.tooltip-box' }); + $('div.container div.panel div.detail-group .details .main-groups').find('.networkcidr').toolTip({ docID:'helpIPReservationNetworkCidr' , mode:'hover' , tooltip:'.tooltip-box' }); + + $detailView.find('td.value span').each(function() { var name = $(this).closest('tr').data('detail-view-field'); var $value = $(this);