1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

Merge pull request #159 from juanmont/master

F #3962
This commit is contained in:
Tino Vázquez 2016-11-28 16:11:44 +01:00 committed by GitHub
commit a4fa0ff032
4 changed files with 15 additions and 0 deletions

View File

@ -22,6 +22,9 @@
<small>{{tr "COST"}} / {{tr "HOUR"}}</small>
</span>
</h5>
<span>
<img src="{{element.TEMPLATE.LOGO}}">
</span>
<div class="row">
<div class="medium-6 small-12 columns capacityContext{{element.ID}}">
<fieldset>

View File

@ -23,6 +23,9 @@
</tr>
</thead>
<tbody>
<tr>
<td class="key_td" colspan="2"><img src="{{element.TEMPLATE.LOGO}}"></td>
</tr>
<tr>
<td class="key_td">{{tr "ID"}}</td>
<td class="value_td" colspan="2">{{element.ID}}</td>

View File

@ -23,6 +23,9 @@
</tr>
</thead>
<tbody>
<tr>
<td class="key_td" colspan="2"><img src="{{element.USER_TEMPLATE.LOGO}}"></td>
</tr>
<tr>
<td class="key_td">{{tr "ID"}}</td>
<td class="value_td" colspan="2">{{element.ID}}</td>

View File

@ -474,6 +474,12 @@ define(function(require) {
context.off("change", ".snapshot_check_item");
context.on("change", ".snapshot_check_item", function() {
var snapshotsSection = $(this).closest('.snapshots');
if(that.element.STATE == "3"){
$(".disk_snapshot_revert", snapshotsSection).hide();
}
else{
$(".disk_snapshot_revert", snapshotsSection).show();
}
// Unselect other check inputs
var checked = $(this).is(':checked');