Файл: static/js/custom/forum_favorites.js
Строк: 24
<?php
$("#page_forum_favorites").bind("pageshow",function(){e=parseInt($("#themes").attr("data-e"));load_favorites(true)});$("#page_forum_favorites").bind("pagehide",function(){$("#page_forum_favorites").remove()});function load_favorites(a){if(a){$.mobile.showPageLoadingMsg()}$.getJSON("/modules/forum_favorites_get/",function(c){if(c=="false"){$("#themes").html('<ul data-role="listview" id="themes_list" data-inset="true"><li data-role="list-divider">Закладки</li><li>Закладок нет.</li></ul>').trigger("create").trigger("refresh");if(a){$.mobile.hidePageLoadingMsg()}return}var b='<ul data-role="listview" id="themes_list" data-inset="true"><li data-role="list-divider">Закладки</li>';$.each(c,function(d,f){b+='<li data-id="'+f.id+'" data-icon="false"><a href="'+f.url+'"><img id="user_avatar" data-user="'+f.user+'" class="image-radius" style="opacity: 1.0" src="/modules/get_avatar/?id='+f.user+'&size=2" alt=""><h3 style="font-size: 14px">'+f.name+"</h3><p>"+f.count+'</p><p class="ui-li-aside">'+f.date+"</p></a></li>"});b+="</ul>";$("#themes").html(b).trigger("create").trigger("refresh");if(a){$.mobile.hidePageLoadingMsg()}})};
?>