mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
* B #3621: select image from checkbox market
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
* M #-: Remove unneeded console.log debug
(cherry picked from commit b0b9d201a2)
This commit is contained in:
1 parent
575f061508
commit
0553e1df91
2 files changed
+21
-20
No files matched your search
@@ -51,13 +51,17 @@ define(function(require) {
|
||||
}
|
||||
|
||||
var resourceId = "" + selected_nodes[0];
|
||||
var type = Sunstone.getDataTable(TAB_ID).type;
|
||||
var type = "IMAGE"; //Sunstone.getDataTable(TAB_ID).type;
|
||||
|
||||
Sunstone.resetFormPanel(TAB_ID, EXPORT_DIALOG_ID);
|
||||
Sunstone.showFormPanel(TAB_ID, EXPORT_DIALOG_ID, "export",
|
||||
Sunstone.showFormPanel(
|
||||
TAB_ID,
|
||||
EXPORT_DIALOG_ID,
|
||||
"export",
|
||||
function(formPanelInstance, context) {
|
||||
formPanelInstance.setResourceId(context, resourceId, type);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
"MarketPlaceApp.export" : {
|
||||
|
||||
@@ -152,23 +152,20 @@ define(function(require) {
|
||||
var color_html = Status.state_lock_to_color("MARKETPLACEAPP",state, element_json[XML_ROOT]["LOCK"]);
|
||||
|
||||
return [
|
||||
'<input class="check_item" type="checkbox" '+
|
||||
'style="vertical-align: inherit;" id="'+this.resource.toLowerCase()+'_' +
|
||||
element.ID + '" name="selected_items" value="' +
|
||||
element.ID + '"/>'+color_html,
|
||||
element.ID,
|
||||
element.NAME,
|
||||
element.UNAME,
|
||||
element.GNAME,
|
||||
element.VERSION,
|
||||
Humanize.sizeFromMB(element.SIZE),
|
||||
state,
|
||||
OpenNebulaMarketPlaceApp.typeStr(element.TYPE),
|
||||
Humanize.prettyTimeDatatable(element.REGTIME),
|
||||
element.MARKETPLACE,
|
||||
zone,
|
||||
(LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
|
||||
btoa(unescape(encodeURIComponent(JSON.stringify(search))))
|
||||
'<input class="check_item" type="checkbox" style="vertical-align: inherit;" id="'+this.resource.toLowerCase()+'_' + element.ID + '" name="selected_items" value="' + element.ID + '"/>'+color_html,
|
||||
element.ID,
|
||||
element.NAME,
|
||||
element.UNAME,
|
||||
element.GNAME,
|
||||
element.VERSION,
|
||||
Humanize.sizeFromMB(element.SIZE),
|
||||
state,
|
||||
OpenNebulaMarketPlaceApp.typeStr(element.TYPE),
|
||||
Humanize.prettyTimeDatatable(element.REGTIME),
|
||||
element.MARKETPLACE,
|
||||
zone,
|
||||
(LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||''),
|
||||
btoa(unescape(encodeURIComponent(JSON.stringify(search))))
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user