Bug 12833 addition of Fetch Latest Button on the Dashboard

Conflicts:

	client/WEB-INF/classes/resources/messages.properties
	ui/css/cloudstack3.css

reviewed-by: brian
This commit is contained in:
pranav 2012-03-27 15:50:09 +05:30 committed by Brian Federle
parent 582e62c204
commit ee0f3e898c
4 changed files with 13 additions and 8 deletions

View File

@ -12,6 +12,7 @@ label.add.netScaler.device=Add Netscaler device
label.add.F5.device=Add F5 device
label.add.SRX.device=Add SRX device
label.account.and.security.group=Account, Security group
label.fetch.latest=Fetch latest
#new labels (end) ************************************************************************************************
@ -1373,11 +1374,3 @@ error.menu.select=Unable to perform action due to no items being selected.
error.mgmt.server.inaccessible=The Management Server is unaccessible. Please try again later.
error.session.expired=Your session has expired.
error.unresolved.internet.name=Your internet name cannot be resolved.

View File

@ -1173,6 +1173,11 @@
<div class="title">
<span></span>
</div>
<div class="button fetch-latest">
<span><fmt:message key="label.fetch.latest"/></span>
</div>
<div class="selects" style="display:none;">
<div class="select">
<label>Zone:</label>
@ -1908,6 +1913,7 @@ dictionary = {
'label.local.storage': '<fmt:message key="label.local.storage" />',
'label.direct.ips': '<fmt:message key="label.direct.ips" />',
'label.view.all': '<fmt:message key="label.view.all" />',
'label.fetch.latest': '<fmt:message key="label.fetch.latest" />',
'label.zone.details': '<fmt:message key="label.zone.details" />',
'message.alert.state.detected': '<fmt:message key="message.alert.state.detected" />',
'state.Starting': '<fmt:message key="state.Starting" />',

View File

@ -138,6 +138,7 @@
if (data.zones) {
$.ajax({
url: createURL('listCapacity'),
data: { fetchLatest: true },
success: function(json) {
var capacities = json.listcapacityresponse.capacity;

View File

@ -173,7 +173,12 @@
};
});
//Fetch Latest action
$dashboard.find('.fetch-latest').click(function() {
var $browser = $('#browser .container');
if ($(this).hasClass('fetch-latest')) $('#navigation li.dashboard').click();
});
getData();