1
0
Fork 0
forked from 0x2620/oxjs

more list

This commit is contained in:
Rolux 2010-06-28 11:16:36 +02:00
commit fc5c98fd97
4 changed files with 164 additions and 67 deletions

View file

@ -2,7 +2,7 @@ $(function() {
Ox.theme("modern");
var $body = $("body"),
app = new Ox.App({
requestURL: "http://blackbook.local:8000/api/"
requestURL: "http://lion.oil21.org:8000/api/"
}),
$list = new Ox.TextList({
columns: [
@ -11,6 +11,7 @@ $(function() {
id: "title",
operator: "+",
title: "Title",
visible: true,
width: 160
},
{
@ -18,13 +19,31 @@ $(function() {
id: "director",
operator: "+",
title: "Director",
visible: true,
width: 160
},
{
align: "left",
id: "country",
operator: "+",
title: "Country",
visible: true,
width: 120
},
{
align: "right",
id: "year",
operator: "-",
title: "Year",
visible: true,
width: 80
},
{
align: "right",
id: "runtime",
operator: "-",
title: "Runtime",
visible: false,
width: 80
}
],
@ -42,9 +61,11 @@ $(function() {
}
}), options.callback);
},
sort: {
key: "year",
operator: "-"
}
sort: [
{
key: "year",
operator: "-"
}
]
}).appendTo($body);
});