This commit is contained in:
rolux 2014-11-20 20:35:47 +00:00
parent 51963b0984
commit 8779bc9daa

View file

@ -317,8 +317,8 @@ pandora.ui.entitiesDialog = function(options) {
} }
function renderForm() { function renderForm() {
var id = ui.entitiesSelection['type'] var id = ui.entitiesSelection[type]
? ui.entitiesSelection['type'][0] ? ui.entitiesSelection[type][0]
: null; : null;
if (!id) { if (!id) {
$form.empty(); $form.empty();
@ -387,6 +387,9 @@ pandora.ui.entitiesDialog = function(options) {
Ox._('entities') Ox._('entities')
) + ' ' + Ox._('selected'); ) + ' ' + Ox._('selected');
renderEntity(); renderEntity();
$itemMenu[
ui.entitiesSelection[type].length ? 'enableItem' : 'disableItem'
]('delete');
$itemMenu.setItemTitle('delete', Ox._('Delete {0}...', [ $itemMenu.setItemTitle('delete', Ox._('Delete {0}...', [
Ox._(ui.entitiesSelection[type].length < 2 ? 'Entity' : 'Entities') Ox._(ui.entitiesSelection[type].length < 2 ? 'Entity' : 'Entities')
])); ]));