dqwr32867
dqwr32867
2019-05-03 13:23

在注销期间显示在Codeigniter 3里面的bootstrap模态箱子的网站视图

In my web application, when I press log out then there is a bootstrap popup comes to ask about log out or not. Its working fine everywhere but not when the page is of edit. Means while edit page there is a parameter in address bar. Due to that bootstrap modal box of log out showing entire website view inside modal box. I am confused how's this possible. This is not the fault of codeigniter coding. Since, the page is working very fine.

On the same page if I remove the parameter from address bar then it works fine. Can't understand this weird error in codeigniter and bootstrap. Is there anyone here who faced same kind of issue before?

Image below of normal modal box that's how modal box should look and working on other pages. enter image description here

Here below is the screenshot of the issueenter image description here

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • dpygo62420 dpygo62420 2年前

    I found the solution. I was making a mistake. On log out link a href I was putting the link to and index.html page like below

    <li><a href="index.html" data-toggle="modal" data-target="#logoutModal"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
    

    Then I removed the index.html link inside a tag. Now it's like below and the issue is resolved.

    <li><a href="" data-toggle="modal" data-target="#logoutModal"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
    
    点赞 评论 复制链接分享