Groundwork for formula support. Lots of other details
This commit is contained in:
@@ -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;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user