🧠 تحلیل عملکرد کد
if (is_view == 'False') { if (confirm_message) { confirm(confirm_message) } $.ajax({ url: url, method: 'POST', success: function (result) { reloadGridItems(); $.each(result.each(function (i, item) { notify(item.tags, item.message); })); } }); } $.each(result, function (i, item) { notify(item.tags, item.message); }); } else { if (new_tab == 'False' || is_popup == 'True') { $.fancybox.open({ type: 'iframe', opts: { afterLoad: function (instance, current) { $(document).resize(); }, clickSlide: null, toolbar: false, smallBtn: true, iframe: { css: { width: width + 'px' } }, afterClose: function () { reloadGridItems(); } } }); return true; } else { if (new_tab == 'True') { window.open(url, '_blank'); } else { window.location.href = url; } e.stopImmediatePropagation(); return true; } }