<div class="@renkClass prgOzet" data-link="@Url.Action("ProgramOzetTooltip", "Program", new { ID = item.ID, area = "yonetim", TurID = item.TurID,Tarih=item.Tarih.Value.ToString("dd.MM.yyyy HH:mm") })">
@if (Fonksiyonlar.YetkiKontrol("Program Ekle##") && isPrgGosterim && !Model.Filtre.isDisardan && (!isKisitli ||
(isKisitli &&((GunSinir == (int)Sabitler.ProgramGunSinir.SadeceGecmis && Trh.Date >= BugunBas) ||
(GunSinir == (int)Sabitler.ProgramGunSinir.SadeceGelecek && Trh.Date <= BugunSon) ||
(GunSinir >= 0 && (Trh.Date >= SinirBasTarih && Trh.Date < SinirBitTarih))))))
{
<div class="yeniekle hidden-print" onclick="YeniProgramModal(0,'@string.Format("{0:00}", Trh.Hour):00','@(Trh.ToString("dd-MM-yyyy"))');"><span><i class="fa fa-plus"></i> yeni ekle</span></div>
}
prgOzet datalink和yeniekle onclick同时触发。单击yeniekle触发prgOzet上的。如何仅触发yeniekle
function YeniProgramModal(ID, sa, tarih, TurID) {
$('.tooltipster-base').css('pointer-events', 'none');
$('#HizliKayitEkle iframe').attr("src", "/yonetim/program/HizliKayit?ID=" + ID + "&sa=" + sa + "&GelisTarihi=" + tarih + "&TurID=" + TurID);
$('#HizliKayitEkle iframe').attr("height", $(window).height());
$('#HizliKayitEkle').modal();
$('.tooltipster-base').css('opacity', '0');
}
我添加了工具提示显示无,以防止在YeniProgramModal打开时打开其他工具提示,但它不起作用
1条答案
按热度按时间bxfogqkk1#
在事件处理程序中使用基本的事件Object方法。
event.stopPropagation()
的向上传播,event.stopImmediatePropagation()
和event.preventDefault()
。这些事件方法也记录在jQuery API文档中。