cloudStack - router page - add "Is redundant router" row.

This commit is contained in:
Jessica Wang 2011-07-20 11:39:15 -07:00
parent 962c966937
commit 62076cbf47
2 changed files with 22 additions and 2 deletions

View File

@ -208,6 +208,18 @@ dictionary = {
</div>
</div>
</div>
<div class="grid_rows even">
<div class="grid_row_cell" style="width: 20%;">
<div class="row_celltitles">
<fmt:message key="label.is.redundant.router"/>:</div>
</div>
<div class="grid_row_cell" style="width: 79%;">
<div class="row_celltitles" id="isredundantrouter">
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -182,7 +182,13 @@ function routerJsonToDetailsTab() {
$thisTab.find("#networkdomain").text(fromdb(jsonObj.networkdomain));
$thisTab.find("#domain").text(fromdb(jsonObj.domain));
$thisTab.find("#account").text(fromdb(jsonObj.account));
setDateField(jsonObj.created, $thisTab.find("#created"));
setDateField(jsonObj.created, $thisTab.find("#created"));
setBooleanReadField(jsonObj.isredundantrouter, $thisTab.find("#isredundantrouter"));
if(jsonObj.isredundantrouter == true) {
var t = $thisTab.find("#isredundantrouter").text()+ " (" + fromdb(jsonObj.redundantstate) + ")";
$thisTab.find("#isredundantrouter").text(t);
}
resetViewConsoleAction(jsonObj, $thisTab);
@ -231,7 +237,9 @@ function routerClearDetailsTab() {
$thisTab.find("#networkdomain").text("");
$thisTab.find("#domain").text("");
$thisTab.find("#account").text("");
$thisTab.find("#created").text("");
$thisTab.find("#created").text("");
$thisTab.find("#isredundantrouter").text("");
resetViewConsoleAction(null, $thisTab);
var $actionMenu = $("#right_panel_content #tab_content_details #action_link #action_menu");