mirror of https://github.com/apache/cloudstack.git
new UI - add icon for snapshot,volume in middle menu.
This commit is contained in:
parent
79e4611697
commit
b231eeffe6
|
|
@ -2,6 +2,10 @@ function snapshotToMidmenu(jsonObj, $midmenuItem1, toRightPanelFn) {
|
|||
$midmenuItem1.attr("id", ("midmenuItem_"+jsonObj.id));
|
||||
$midmenuItem1.data("id", jsonObj.id);
|
||||
$midmenuItem1.data("jsonObj", jsonObj);
|
||||
|
||||
var iconContainer = $midmenuItem1.find("#icon_container").show();
|
||||
iconContainer.find("#icon").attr("src", "images/midmenuicon_storage_snapshots.png");
|
||||
|
||||
$midmenuItem1.find("#first_row").text(jsonObj.name.substring(0,25));
|
||||
$midmenuItem1.find("#second_row").text(jsonObj.volumename.substring(0,25));
|
||||
$midmenuItem1.data("toRightPanelFn", toRightPanelFn);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ function volumeToMidmenu(jsonObj, $midmenuItem1, toRightPanelFn) {
|
|||
$midmenuItem1.attr("id", ("midmenuItem_"+jsonObj.id));
|
||||
$midmenuItem1.data("id", jsonObj.id);
|
||||
$midmenuItem1.data("jsonObj", jsonObj);
|
||||
|
||||
var iconContainer = $midmenuItem1.find("#icon_container").show();
|
||||
iconContainer.find("#icon").attr("src", "images/midmenuicon_storage_volume.png");
|
||||
|
||||
$midmenuItem1.find("#first_row").text(jsonObj.name.substring(0,25));
|
||||
$midmenuItem1.find("#second_row").text(jsonObj.type.substring(0,25));
|
||||
$midmenuItem1.data("toRightPanelFn", toRightPanelFn);
|
||||
|
|
|
|||
Loading…
Reference in New Issue