1
0
Fork 0
forked from 0x2620/oxjs

update css for classic theme

This commit is contained in:
Rolux 2010-07-05 09:09:34 +02:00
commit 9eb96ea54c
8 changed files with 417 additions and 47 deletions

View file

@ -198,6 +198,34 @@ $(function() {
]
}),
$iconList = new Ox.IconList({
id: "list",
item: function(data, sort) {
return {
height: data["posterHeight"],
id: data["id"],
info: data[$.inArray(sort[0].key, ["title", "director"]) > -1 ? "year" : sort[0].key],
title: data["title"] + " (" + data["director"] + ")",
url: data["posterURL"],
width: data["posterWidth"]
};
},
keys: ["director", "id", "posterHeight", "posterWidth", "posterURL", "title"],
request: function(options) {
app.request("find", $.extend(options, {
query: constructQuery()
}), options.callback);
},
size: 128,
sort: [
{
key: "director",
operator: "+"
}
],
unique: "id"
}),
$toolBar = Ox.Bar({
size: 24
}),
@ -231,23 +259,23 @@ $(function() {
title: "View with Timelines"
},
{
id: "timelines",
id: "maps",
title: "View with Maps"
},
{
id: "timelines",
id: "calendars",
title: "View with Calendars"
},
{
id: "timelines",
id: "clip",
title: "View as Clips"
},
{
id: "timelines",
id: "map",
title: "View on Map"
},
{
id: "timelines",
id: "calendar",
title: "View on Calendar"
},
]
@ -441,6 +469,12 @@ $(function() {
$loadingIcon.stop();
});
Ox.Event.bind(null, "change_viewSelect", function(event, data) {
if (data.id == "icons") {
$list.replaceWith($iconList);
}
});
Ox.Event.bind(null, "submit_find", function(event, data) {
findCondition = {
key: data.key == "all" ? "" : data.key,
@ -503,7 +537,6 @@ $(function() {
});
Ox.Event.bind(null, "load_list", function(event, data) {
Ox.print("data", data)
var html = [
data.items + " movie" + (data.items != 1 ? "s" : ""),
Ox.formatDuration(data.runtime, "long"),