هذه الميزة تحت الإنشاء
"+''); $('.fade-scale-modal-alert').modal('show'); return false; }); }); $(document).on("mouseenter touchstart touchmove",".notif_new",function() { $(this).attr("class",$(this).attr("class").replace("fas fa-circle", "far fa-eye")); }); $(document).on("mouseleave",".notif_new",function() { $(this).attr("class",$(this).attr("class").replace("far fa-eye", "fas fa-circle")); }); $(document).on("click",".notif_li a.notif_link,.notif_new",function() { var thisA = $(this); var id = thisA.parent().attr("data-notif-id"); var url = thisA.attr("href"); var jqxhr = $.post( "https://bookslibrary.com/"+"notification_seen.php", { id: id } , function(data) { }).fail(function(data) { }).done(function(data) { console.log(data); if(data.id){ if(url){ window.location = url; }else{ thisA.parent().removeClass("notif_noneseen"); thisA.parent().addClass("notif_seen"); var newCount = parseInt($(".modal-body li.notif_li.notif_noneseen").length); LastNotifCount = newCount; if(newCount){ $(".notification_head_btn .badge").html(newCount); }else{ $(".notification_head_btn .badge").fadeOut("fast"); } console.log("li.notif_noneseen:" + newCount); thisA.parent().find(".notif_new").fadeOut("fast",function(){ $(".notification_dialog .dialog_links").html($(".modal-body .dialog_links").html()); }); } } }); return false; }); $( "body" ).on( "click",'.notification_head_btn,.notification_btn', function() { console.log("notification_head_btn clicked"); $('.fade-scale-modal-alert .modal-title').html("الاشعارات:"); $('.fade-scale-modal-alert .modal-title').addClass("text-right"); $('.fade-scale-modal-alert .modal-header').show(); $('.fade-scale-modal-alert .modal-body').html($(".notification_dialog").html()); $('.fade-scale-modal-alert').modal('show'); $('.fade-scale-modal-alert .modal-body .dialog_notif').html('