在这里,我有cshtml和js ajax ..我有两个站点..第一个站点打开了弹出模式...另一个站点没有打开了弹出模式

时间:2019-01-31 07:59:19

标签: c# ajax asp.net-mvc api bootstrap-4

这里我有cshtml和js ajax ..我有两个站点..第一个站点打开了弹出模式...另一个站点为什么没有打开弹出模式?

<div class="modal fade bs-example-modal-lg" id="addNote" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-large">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"> Notes for <span id="noteTitle">@Model.TitleName</span></h4>
            </div>
        </div>
   </div>

 <span class="float-right btn" id="btnnote" onclick="openAuthNotePopup();" style="padding:0px;"><img title="Add Note" width="25" height="25" alt="Add Note" src='@Url.Content("~/Content/images/sticky-note2.png")' /></span>   


 function openAuthNotePopup() {
    var memberNotesUrl = '@(Url.Action("CreateNote", "Notes", new { area = AreaName.Notes}))' + "?modulePageID=" + '@((int)Enums.Page.NoteAuthorizations)' + "&id=" + '@(Model.AuthorizationID)' + "&memberOrProviderID=" + '@(Model.MemberID)' + "&titleName=" + '@(titleName)';
    $("#divNotes").html("");
    $.ajax({
        type: 'GET',
        url: memberNotesUrl,
        success: function (data) {
            $("#divNotes").html(data);
            $('#addNote').modal()
            $('#addNote').modal('show')
        }
    });
}   

0 个答案:

没有答案