Tabs _appear_ to work, but no internet

This commit is contained in:
Piotr Mitros
2011-12-16 18:07:40 -05:00
parent 1f6d583021
commit 216db51072
3 changed files with 28 additions and 13 deletions

View File

@@ -22,10 +22,8 @@ var ${ id }destroy_functions=["",
var ${ id }loc = -1;
function ${ id }goto(i) {
// TODO:
// ${ id }contents[${ id }loc] = $('#content').html();
if (${ id }loc!=-1)
${ id }init_functions[ ${ id }loc ]();
${ id }destroy_functions[ ${ id }loc ]();
$('#content').html(${ id }contents[i]);
${ id }init_functions[i]()
$('#tt_'+${ id }loc).attr("style", "background-color:grey");
@@ -52,7 +50,7 @@ function ${ id }prev() {
$(function() {
var i;
for(i=1; i<11; i++) {
for(i=1; i<${ len(items)+1 }; i++) {
${ id }setup_click(i);
}
$('#${ id }next').click(function(eo) { ${ id }next();});