mirror of
https://github.com/apache/cloudstack
synced 2026-08-30 00:52:15 +00:00
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack
This commit is contained in:
commit
406550b2f7
@ -6802,6 +6802,15 @@ div.panel.ui-dialog div.list-view div.fixed-header {
|
||||
text-shadow: 0px 1px #FFFFFF;
|
||||
}
|
||||
|
||||
.multi-edit .disabled .button.custom-action {
|
||||
/*+opacity:50%;*/
|
||||
filter: alpha(opacity=50);
|
||||
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
|
||||
-moz-opacity: 0.5;
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.multi-edit .button.custom-action:hover {
|
||||
background: #808080 url(../images/bg-gradients.png);
|
||||
color: #FFFFFF;
|
||||
|
||||
@ -1323,8 +1323,14 @@
|
||||
|
||||
guestGateway: { label: 'label.guest.gateway' },
|
||||
guestNetmask: { label: 'label.guest.netmask' },
|
||||
guestStartIp: { label: 'label.guest.start.ip' },
|
||||
guestEndIp: { label: 'label.guest.end.ip' },
|
||||
guestStartIp: {
|
||||
label: 'label.guest.start.ip',
|
||||
validation: { required: true }
|
||||
},
|
||||
guestEndIp: {
|
||||
label: 'label.guest.end.ip',
|
||||
validation: { required: true }
|
||||
},
|
||||
networkdomain: { label: 'label.network.domain' }
|
||||
}
|
||||
},
|
||||
|
||||
@ -172,6 +172,8 @@
|
||||
$button.html(data && data[fieldName] && data[fieldName]['_buttonLabel'] ?
|
||||
_l(data[fieldName]['_buttonLabel']) : _l(field.custom.buttonLabel));
|
||||
$button.click(function() {
|
||||
if ($td.hasClass('disabled')) return false;
|
||||
|
||||
var $button = $(this);
|
||||
|
||||
field.custom.action({
|
||||
@ -187,6 +189,8 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
});
|
||||
$button.appendTo($td);
|
||||
}
|
||||
@ -201,6 +205,11 @@
|
||||
var targetWidth = $multi.find('th.' + fieldName).width() + 5;
|
||||
$td.width(targetWidth);
|
||||
|
||||
if (data._hideFields &&
|
||||
$.inArray(fieldName, data._hideFields) > -1) {
|
||||
$td.addClass('disabled');
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user