Groundwork for formula support. Lots of other details

This commit is contained in:
Piotr Mitros
2011-12-15 07:52:29 -05:00
parent 5385a02428
commit 4e80e5c3bd
6 changed files with 100 additions and 50 deletions

View File

@@ -1,16 +1,23 @@
var tab_funcs=[]
## We'd like to refresh the contents of tabs when they're shown again, but this probably
## isn't the way
## % for t in tabs:
## % if 'js' in t[1]:
## tab_funcs.push(function(){ ${t[1]['js']} });
## % else:
## tab_funcs.push(function(){});
## % endif
## % endfor
var ${ id }files=["",
%for t in items:
${t[1]['content']} ,
%endfor
""
];
var ${ id }functions=["",
%for t in items:
function(){ ${t[1]['init_js']} },
%endfor
""];
$("#tabs").tabs({select:function(event, ui){
## tab_funcs[ui.index]();
}});
global=ui;
return true;
},
show:function(event,ui){
global=ui;
alert('hello');
return true;
},
});