debugging...

This commit is contained in:
Rolux 2010-07-05 14:36:12 +02:00
parent 010d44ebef
commit 3fdb5dfa0e

View file

@ -1,6 +1,6 @@
$(function(){ $(function(){
//Ox.debug = Ox.print; Ox.debug = Ox.print;
//Ox.print = function() {}; Ox.print = function() {};
Ox.theme("modern"); Ox.theme("modern");
app = new Ox.App({ app = new Ox.App({
@ -92,7 +92,25 @@ $(function(){
clear: true, clear: true,
highlight: false, highlight: false,
id: "find", id: "find",
label: ["Find: Title", "Find: All", "Find: Director", "Find: Country", "Find: Cinematographer"], label: [
{ id: "all", title: "Find: All" },
{ id: "title", title: "Find: Title" },
{ id: "director", title: "Find: Director" },
{ id: "country", title: "Find: Country" },
{ id: "year", title: "Find: Year" },
{ id: "language", title: "Find: Language" },
{ id: "writer", title: "Find: Writer" },
{ id: "producer", title: "Find: Producer" },
{ id: "cinematographer", title: "Find: Cinematographer" },
{ id: "editor", title: "Find: Editor" },
{ id: "actor", title: "Find: Actor" },
{ id: "character", title: "Find: Character" },
{ id: "name", title: "Find: Name" },
{ id: "genre", title: "Find: Genre" },
{ id: "keyword", title: "Find: Keyword" },
{ id: "summary", title: "Find: Summary" },
{ id: "dialog", title: "Find: Dialog" }
],
labelWidth: 96 labelWidth: 96
}).width(320), }).width(320),
loadingIcon loadingIcon
@ -337,8 +355,6 @@ $(function(){
'padding-top': '48px', 'padding-top': '48px',
}); });
Ox.print(-1);
var submit = function() { var submit = function() {
app.request('login', loginForm.values(), function(result) { app.request('login', loginForm.values(), function(result) {
if(result.status.code == 200) { if(result.status.code == 200) {
@ -353,17 +369,11 @@ $(function(){
}); });
} }
Ox.print(0);
var d = new Ox.Container(); var d = new Ox.Container();
var registerInfo = new Ox.Panel(); var registerInfo = new Ox.Panel();
Ox.print(1);
registerInfo.append(Ox.Element().css({'margin-left': '4px'}).append('<br>Forgot your password? <a href="">Recover Password</a><br>Dont have an account? <a href="">Register Now</a>')); registerInfo.append(Ox.Element().css({'margin-left': '4px'}).append('<br>Forgot your password? <a href="">Recover Password</a><br>Dont have an account? <a href="">Register Now</a>'));
Ox.print(2);
var panel = Ox.SplitPanel({ var panel = Ox.SplitPanel({
elements: [ elements: [
{ {
@ -377,8 +387,6 @@ $(function(){
orientation: "vertical" orientation: "vertical"
}).appendTo(d); }).appendTo(d);
Ox.print(3);
var $dialog = new Ox.Dialog({ var $dialog = new Ox.Dialog({
title: "Login", title: "Login",
width: inputWidth+24, width: inputWidth+24,