forked from 0x2620/pandora
typo
This commit is contained in:
parent
51963b0984
commit
8779bc9daa
1 changed files with 5 additions and 2 deletions
|
@ -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')
|
||||||
]));
|
]));
|
||||||
|
|
Loading…
Reference in a new issue