'+item.attr('data-load-infinite-button')+'
');\n\t\t\t\t\tthat.addListener();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar itemTopPos = item.offset().top;\n\t\t\t\tvar itemHeight = item.outerHeight();\n\t\t\t\tvar windowScrollTop = window.scrollTop();\n\t\t\t\tvar windowHeight = app.getViewport('height');\t\t\t\n\t\t\t\tif (itemTopPos+itemHeight-windowScrollTop+that.vars.infinePadding < windowHeight){\n\t\t\t\t\tif (typeof item.attr('data-end') === 'undefined' && !that.vars.infiniteLoading){\n\t\t\t\t\t\tthat.infiniteLoad(item);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tinfiniteLoad:function(item){\n\t\tvar that = this;\n\t\tthat.infiniteShowLoader(item);\n\t\t$.ajax({\n\t\t\ttype:'POST',\n\t\t\turl:item.attr('data-load-infinite'),\n\t\t\tdata:'page='+(typeof item.attr('data-next-page') === 'undefined' ? 2 : item.attr('data-next-page'))+(typeof item.attr('data-data') !== 'undefined' ? '&'+item.attr('data-data') : ''),\n\t\t\tsuccess:function(data){\n\t\t\t\titem.append(data.html);\n\t\t\t\tif (typeof item.attr('data-next-page') === 'undefined'){\n\t\t\t\t\titem.attr('data-next-page', 3);\n\t\t\t\t} else {\n\t\t\t\t\titem.attr('data-next-page', parseInt(item.attr('data-next-page'))+1);\n\t\t\t\t}\n\t\t\t\tif (!data.hasMorePages){\n\t\t\t\t\titem.attr('data-end', true);\n\t\t\t\t} else {\n\t\t\t\t\tif (typeof item.next().next('.loader_load_more').html() !== 'undefined'){\n\t\t\t\t\t\titem.next().next('.loader_load_more').removeClass('hidden');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (typeof item.attr('data-module') !== 'undefined'){\n\t\t\t\t\tapp.modules[item.attr('data-module')].addListener();\n\t\t\t\t}\n\t\t\t\tif (typeof data.callbackJs !== 'undefined'){\n\t\t\t\t\tif ($.isArray(data.callbackJs[0])){\n\t\t\t\t\t\t$.each(data.callbackJs, function(key, value){\n\t\t\t\t\t\t\tif (typeof app.modules[value[0]] !== 'undefined'){\n\t\t\t\t\t\t\t\tapp.modules[value[0]][value[1]](item, data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapp.modules[data.callbackJs[0]][data.callbackJs[1]](item, data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthat.addListener();\n\t\t\t\tapp.modules.form.addListener();\n\t\t\t\tapp.modules.overlay.addListener();\n\t\t\t\tapp.modules.tooltip.init();\n\t\t\t\tthat.infiniteHideLoader(item);\n\t\t\t\tthat.vars.canClickLoad = true;\n\t\t\t}\n\t\t});\n\t},\n\tinfiniteShowLoader:function(item){\n\t\tvar that = this;\n\t\tthat.vars.infiniteLoading = true;\n\t\titem.after('