jQuery(document).ready(function(){ jQuery('button').button(); var buttons = { 'Cancelar': function() { jQuery(this).dialog('close'); } } jQuery('#bt_login_elocal').button(); jQuery('#bt_login_eprivado').button(); jQuery('#bt_login_ecentral').button(); jQuery('#bt_login_elocal').click( function() { login('local.elocal'); }); jQuery('#bt_login_eprivado').click( function() { login('erp.fasoft'); }); jQuery('#bt_login_ecentral').click( function() { login('central.ecentral'); }); // Remove preload page jQuery('#wallpaper').html(''); jQuery('#page_effect').fadeOut(400,function(){ jQuery('#page_effect').remove(); jQuery('.abs2').fadeOut(400,function(){ jQuery('button', '#start').button(); jQuery('button', '#showd').button(); jQuery('#taskbar').animate({height: 'toggle'}, 'slow'); }); }); }); // Função que abre as janelas no jqDesktop function addJQD(id,title,href,bottom,html,width,height){ var JQDwindow = 'window_'+id; var JQDtaskbar = 'icon_dock_'+id; if(!bottom) { var bottom = '© Basemed Consultores, Lda'; } // Janela existe, trazer para a frente if(href==='sair'){ encerrarSessao(); } else if(jQuery('#'+JQDwindow).html() != null ) { JQD.util.window_flat(); jQuery('#'+JQDwindow).show().addClass('window_stack'); // Janela não existe, criar e trazer para a frente } else { // taskbar jQuery('#dock').append( "
  • "+title+"
  • " ); /* if (html === true){ jQuery('#desktop').append( "
    "+title+"
    a carregar
    "+bottom+"
    " ); jQuery('#window_main','#'+JQDwindow).html(href); } else { */ jQuery('#desktop').append( "
    "+title+"
    "+bottom+"
    " ); jQuery('#window_main','#'+JQDwindow).load(href); /*}*/ } if (width >= 10){jQuery('#'+JQDwindow).width(width);} if (height>= 10){jQuery('#'+JQDwindow).height(height);} jQuery('#'+JQDwindow).addClass('window_stack').show(); jQuery('#'+JQDtaskbar).remove().appendTo('#dock'); jQuery('#'+JQDtaskbar).show('fast'); };