[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / prive / javascript / gadgets.js
index c006bb1..ea4b8f3 100644 (file)
@@ -1,3 +1,24 @@
+function init_bandeau_gadgets(url_toutsite,url_navrapide,url_agenda,html_messagerie){
+       verifForm();
+       calculer_top_bandeau_sec();
+       $("#page,#bandeau-principal")
+       .mouseover(function(){
+               if (typeof(window["changestyle"])!=="undefined") window.changestyle("garder-recherche");
+               });
+       init_gadgets(url_toutsite,url_navrapide,url_agenda,html_messagerie);
+}
+
+function calculer_top_bandeau_sec() {
+       var hauteur_max = 0;
+       var hauteur_bouton = 0;
+       
+       $(".boutons_admin a.boutons_admin .icon_texte").each(function(){
+               hauteur_bouton = parseInt($(this).height());
+               if (hauteur_bouton > hauteur_max) hauteur_max = hauteur_bouton;
+       });
+       $(".boutons_admin a.boutons_admin .icon_texte").height(hauteur_max);
+}      
+
 function init_gadgets(url_toutsite,url_navrapide,url_agenda,html_messagerie){
        jQuery('#boutonbandeautoutsite')
        .one('mouseover',function(event){
@@ -35,4 +56,4 @@ function init_gadgets(url_toutsite,url_navrapide,url_agenda,html_messagerie){
        // la case de recherche s'efface la premiere fois qu'on la clique
        jQuery('#form_recherche')
        .one('click',function(){this.value='';});
-}
\ No newline at end of file
+}