1 function init_bandeau_gadgets(url_toutsite
,url_navrapide
,url_agenda
,html_messagerie
){
3 calculer_top_bandeau_sec();
4 $("#page,#bandeau-principal")
6 if (typeof(window
["changestyle"])!=="undefined") window
.changestyle("garder-recherche");
8 init_gadgets(url_toutsite
,url_navrapide
,url_agenda
,html_messagerie
);
11 function calculer_top_bandeau_sec() {
13 var hauteur_bouton
= 0;
15 $(".boutons_admin a.boutons_admin .icon_texte").each(function(){
16 hauteur_bouton
= parseInt($(this).height());
17 if (hauteur_bouton
> hauteur_max
) hauteur_max
= hauteur_bouton
;
19 $(".boutons_admin a.boutons_admin .icon_texte").height(hauteur_max
);
22 function init_gadgets(url_toutsite
,url_navrapide
,url_agenda
,html_messagerie
){
23 jQuery('#boutonbandeautoutsite')
24 .one('mouseover',function(event
){
25 if ((typeof(window
['_OUTILS_DEVELOPPEURS']) == 'undefined') || ((event
.altKey
|| event
.metaKey
) != true)) {
26 changestyle('bandeautoutsite');
27 jQuery('#gadget-rubriques')
29 } else { window
.open(url_toutsite
+'&transformer_xml=valider_xml'); }
31 .one('focus', function(){jQuery(this).mouseover();});
33 jQuery('#boutonbandeaunavrapide')
34 .one('mouseover',function(event
){
35 if ((typeof(window
['_OUTILS_DEVELOPPEURS']) == 'undefined') || ((event
.altKey
|| event
.metaKey
) != true)) {
36 changestyle('bandeaunavrapide');
37 jQuery('#gadget-navigation')
39 } else { window
.open(url_navrapide
+'&transformer_xml=valider_xml'); }
41 .one('focus', function(){jQuery(this).mouseover();});
43 jQuery('#boutonbandeauagenda')
44 .one('mouseover',function(event
){
45 if ((typeof(window
['_OUTILS_DEVELOPPEURS']) == 'undefined') || ((event
.altKey
|| event
.metaKey
) != true)) {
46 changestyle('bandeauagenda');
47 jQuery('#gadget-agenda')
49 } else { window
.open(url_agenda
+'&transformer_xml=valider_xml'); }
51 .one('focus', function(){jQuery(this).mouseover();});
53 jQuery('#gadget-messagerie')
54 .html(html_messagerie
);
56 // la case de recherche s'efface la premiere fois qu'on la clique
57 jQuery('#form_recherche')
58 .one('click',function(){this.value
='';});