在已经打开的模式上打开模式

在已经打开的模式上打开模式

本文介绍了Twitter引导程序-在已经打开的模式上打开模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的情况:我正在打开一个模态窗口,其中包含一些记录详细信息,并且有一个删除"按钮.当用户单击此按钮时,我需要在现有模式上方/上方显示一个确认"模式(询问您确定吗?"),但是当显示此确认模式时,它不会首先阻止详细信息"情态(在后面).

Here's my scenario: I'm opening a modal window with some record details, and I've a "Delete" button. When user clicks on this button, I need to show a "confirmation" modal above/over the existing modal (asking "are you sure?"), but when this confirmation modal is showed, it doesn't block the "details" first modal (behind).

有人知道我该怎么做吗?

Does anyone know how can I do it?

谢谢!

推荐答案

做到这一点很容易.您已经打开的模式中的链接必须看起来像这样:

It's quite easy to do it. Links in your already opened modal have to look like this:

<a href="NEW URL" data-dismiss="modal" data-toggle="modal" data-target="#newModal">Anchor text</a>

data-dismiss ="modal" ->将关闭该模式= 这就是窍门!!
data-toggle ="modal"->将打开新对话框

data-dismiss="modal" -> will close that modal = that is the trick!!!!
data-toggle="modal" -> will open new dialog

享受!

这篇关于Twitter引导程序-在已经打开的模式上打开模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 00:54