update example
This commit is contained in:
parent
e8f3caff8e
commit
8be5ffbb2c
1 changed files with 12 additions and 13 deletions
|
@ -65,7 +65,7 @@ Ox.load('UI', function() {
|
|||
$innerPanel = Ox.SplitPanel({
|
||||
elements: [
|
||||
{element: $main},
|
||||
{element: $list, size: 256}
|
||||
{element: $list, resizable: true, resize: [256], size: 256}
|
||||
],
|
||||
orientation: 'horizontal'
|
||||
}),
|
||||
|
@ -79,7 +79,16 @@ Ox.load('UI', function() {
|
|||
.appendTo(Ox.$body);
|
||||
|
||||
function openDialog(data) {
|
||||
var $content = Ox.Element()
|
||||
var $button = Ox.Button({
|
||||
id: 'close',
|
||||
title: 'Close'
|
||||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
$dialog.close();
|
||||
}
|
||||
}),
|
||||
$content = Ox.Element()
|
||||
.css(getContentCSS(data))
|
||||
.append(
|
||||
Ox.FileInput({
|
||||
|
@ -101,17 +110,7 @@ Ox.load('UI', function() {
|
|||
})
|
||||
),
|
||||
$dialog = Ox.Dialog({
|
||||
buttons: [
|
||||
Ox.Button({
|
||||
id: 'close',
|
||||
title: 'Close'
|
||||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
$dialog.close();
|
||||
}
|
||||
})
|
||||
],
|
||||
buttons: [$button],
|
||||
content: $content,
|
||||
height: 129,
|
||||
keys: {escape: 'close'},
|
||||
|
|
Loading…
Reference in a new issue