Hi I have a problem with my project. I have a click event in one of my controller that call another controller to displays a content the thing that it works once and after re-clicking on the same element it crash. So my solution will be that after the first call you use the function that display the content. My question is how ? thanks.
the click event on my first controller that empty the div then add the new content. It only works once why ?
- '#button_0 click' : function(el,ev) {
- var classP = "";
- var content = "";
- classP = el.attr('class').substr(11);
- $(".moments_list").html('');
- content = $('.personal_page').moments_list({
- selectedCategoryId : classP,
- isNotClicked : [false, true, true, true, true],
- isDark : 0,
- areaInit : true,
- superInit : false,
- triangleInit : false
- });