forked from 0x2620/pandora
yet another javascript gotcha
This commit is contained in:
parent
56ce668c84
commit
2622ab057e
1 changed files with 10 additions and 6 deletions
|
@ -345,17 +345,17 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
.css({margin: '2px 2px 4px 2px'})
|
.css({margin: '2px 2px 4px 2px'})
|
||||||
.appendTo($form),
|
.appendTo($form),
|
||||||
$input;
|
$input;
|
||||||
if (key.type == 'document') {
|
if (key.type === 'document') {
|
||||||
$input = Ox.Input({autovalidate: /^[A-Z]+?$/});
|
$input = Ox.Input({autovalidate: /^[A-Z]+?$/});
|
||||||
} else if (key.type == 'float') {
|
} else if (key.type === 'float') {
|
||||||
$input = Ox.Input({type: 'float'});
|
$input = Ox.Input({type: 'float'});
|
||||||
} else if (key.type == 'int') {
|
} else if (key.type === 'int') {
|
||||||
$input = Ox.Input({type: 'int'});
|
$input = Ox.Input({type: 'int'});
|
||||||
} else if (key.type == 'string') {
|
} else if (key.type === 'string') {
|
||||||
$input = Ox.Input();
|
$input = Ox.Input();
|
||||||
} else if (key.type[0] == 'string') {
|
} else if (key.type[0] === 'string') {
|
||||||
$input = Ox.ArrayInput();
|
$input = Ox.ArrayInput();
|
||||||
} else if (key.type == 'text') {
|
} else if (key.type === 'text') {
|
||||||
$input = Ox.Input({
|
$input = Ox.Input({
|
||||||
height: 248 - Ox.SCROLLBAR_SIZE,
|
height: 248 - Ox.SCROLLBAR_SIZE,
|
||||||
type: 'textarea'
|
type: 'textarea'
|
||||||
|
@ -383,6 +383,10 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function selectEntities() {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
|
||||||
function updateForm() {
|
function updateForm() {
|
||||||
var width = $content.options('elements')[2].size - 8;
|
var width = $content.options('elements')[2].size - 8;
|
||||||
$labels.forEach(function($label) {
|
$labels.forEach(function($label) {
|
||||||
|
|
Loading…
Reference in a new issue