Projet Socle ENT
Pages enfant
  • Retaillage d'iframe

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: ajout du répertoire du skin par défaut où ajouter le fichier js

...

Mettre le fichier iframe-resize-plugins.js dans le dossier "javascript" du skin (ex : custom/uPortal/uportal-war/src/main/webapp/media/skins/universality/common/javascript/)

Bloc de code
 /*********************************************

Resize d'iframe

*********************************************/
(function($){
    $(document).ready(function(){
    
        var resizeFrames = function() {
            $('iframe').each(function(){            
                var height_window = $(window).height();
                
                // do not open other iframe
                // direct child of up-portlet-content-wrapper-inner
                if($(this).parent().get(0).className == 'up-portlet-content-wrapper-inner') {
                    newHeight = height_window-210;
                    this.height=newHeight+"px";
                
                    $('#portalPageFooter').hide();
                }
            });
        }
        
        $(window).resize(function() {
            resizeFrames();
        });

        resizeFrames();
    });
})(jQuery);