MediaWiki:Sidebar
Edição feita às 21h39min de 5 de junho de 2012 por Intersiteinfo (disc | contribs)
- SAT
- SAT info|SAT Principal
- Resumo|Resumo
- Introdução|Introdução
- Lista de Botões|Lista de Botões
- Retenção de Impostos|Retenção de Impostos
- Tabelas-Clientes|Tabelas-Clientes
- Tabelas-Fornecedores|Tabelas-Fornecedores
- Tabelas-Itens de Despesa/Estoque|Tabelas-Itens de Despesa/Estoque
- Tabelas-Veículos|Tabelas-Veículos
- Tabelas-Cidades|Tabelas-Cidades
- Tabelas-Locais de Coleta/Entrega|Tabelas-Locais de Coleta/Entrega
- Tabelas-Motoristas|Tabelas-Motoristas
- Tabelas-Funcionários|Tabelas-Funcionários
- Tabelas-Proprietários|Tabelas-Proprietários
- Tabelas-Filiais|Tabelas-Filiais
- Despesas-Super Grupo|Despesas-Super Grupo
- Despesas-Grupos|Despesas-Grupos
- Receitas-Contas Correntes
- Receitas-Embarcadores
- Receitas-Controle de Pneus
- Auxiliares-Mercadorias|Auxiliares-Mercadorias
- Auxiliares-Condições de Pagamentos|Auxiliares-Condições de Pagamentos
- Auxiliares-Unidades de Embarque|Auxiliares-Unidades de Embarque
- Auxiliares-Unidades de Negócio|Auxiliares-Unidades de Negócio
- Auxiliares-Empresas|Auxiliares-Empresas
- Auxiliares-Bancos|Auxiliares-Bancos
- Auxiliares-Mês/Ano Bloqueado|Auxiliares-Mês/Ano Bloqueado
- Auxiliares-Observações Fiscais|Auxiliares-Observações Fiscais
- Auxiliares-Contas Contábeis|Auxiliares-Contas Contábeis
///////////////////////////////////////////////////////
// Codesnippet to make your sidebaritems expandable //
// Use this code ONLY for monobook-Style. //
///////////////////////////////////////////////////////
$(document).ready(function(){
//set the default expanded Items by their headline var defaultExpandItems= ['Navigation', 'Orga']; //set the basic-name for the cookies, which save the current state of expanding var expandCookieName = "disdance_project_wiki_nav_expanded_"; var maxHeights=[] var expandeds=[]; var labels=[]; initNav();
} function initNav(){
$('#p-logo').css({'position':'relative', 'display':'block'});; $('.generated-sidebar h5,#p-tb h5 ').each(function(i){ var id = $(this).parent().attr('id'); maxHeights[id]=$(this).next('div').height(); var str = $(this).html(); labels[id]=str; if ($.cookie(expandCookieName+id)=='false' ){ expandeds[id]=false; minimize( $(this)); } else if ($.cookie(expandCookieName+id)=='true' ){ expandeds[id]=true; maximize( $(this)); } else if (defaultExpandItems.indexOf(str)==-1){ expandeds[id]=false; minimize( $(this)); } else { expandeds[id]=true; maximize( $(this)); } $(this).css({'cursor':'pointer'}); $(this).click(toggleNav); });
}
function minimize(target){
var id=$(target).parent().attr('id'); //You can change the expires-parameter to save the Cookie longer/shorter than 7 days like in this Code $.cookie(expandCookieName+id,'false', { expires: 7}); var str = labels[id]+" ►"; $(target).next('div').animate({'height':'0px'}); $(target).html(str);
}
function maximize(target){
var id=$(target).parent().attr('id'); //You can change the expires-parameter to save the Cookie longer/shorter than 7 days like in this Code $.cookie(expandCookieName+id,'true', { expires: 7}); var str = labels[id]+" ▼"; var newHeight = maxHeights[id]; $(target).next('div').animate({'height':newHeight+'px'}); $(target).html(str);
}
function toggleNav(e){
var id=$(e.target).parent().attr('id'); expandeds[id]=!expandeds[id]; if(expandeds[id]==true){ maximize(e.target); } else{ minimize(e.target); }
}
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////