Support » Plugins and Hacks » Events Manager » Disable or hook the ajax month pagination

  • Hi!
    we need to add the same height to every td in the table. So actually we did it, but when we go to the next or previous month the javascript doesnt run again.
    How we can solve that?

Viewing 10 replies - 1 through 10 (of 10 total)
  • angelo_nwl

    (@angelo_nwl)


    NetWebLogic Support


    do you have sample link to your site with this issue for us to see and analyze? thanks

    Hi Angelo, thanks for the response
    here’s the link:
    http://desa.matte.cl/?page_id=955

    caimin_nwl

    (@caimin_nwl)


    NetWebLogic Support


    How did you do the customization?

    Was it working correctly before the customization?

    It does not malfunction, it’s just that the javascript should happen again when you go forward
    I do not know if I explain myself well XD
    In some cases plugins with ajax have a field to eject jquery when you finish executing the ajax, that would be great

    caimin_nwl

    (@caimin_nwl)


    NetWebLogic Support


    Can you answer my questions above? Thanks.

    Sorry!
    first i made this jquery funcion:

    function anchoTD(){
    	var $cantidad;
    	$cantidad = 0;
    	$('table.em-calendar tbody td').each(function(c,i){
    		$cantidad++;
    		if($(this).parent('tr').hasClass('days-names')){
    			
    		}else{
    			$ancho = $(this).width();
    			console.log('alto' + $ancho);
    			console.log('cantidad' + $cantidad);
    			$(this).css('height', $ancho * 0.7);
    		}
    	});
    };

    then i call the function:

    $(window).load(function () {	  
    	  anchoTD();
        });

    Thanks!

    caimin_nwl

    (@caimin_nwl)


    NetWebLogic Support


    If you remove this custom code does the calendar work correctly?

    yes, the calendar work correctly every time, with or without the code

    regards!

    caimin_nwl

    (@caimin_nwl)


    NetWebLogic Support


    Then this issue is resolved?

    Clearly I’m not explaining well:
    The problem is that we need every cell in the table to have a given height with jquery. But as I move to the next month, that jquery does not run again and I need to know how to call it again when the page progresses.
    I hope I have explained better 🙂
    thank you very much!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.