jQuery UI 1.10对话框 – 阻止insertBefore
使用新的jQuery UI,当打开两个对话框窗口并触发焦点时 – 获得焦点的对话框将在其他对话框之前插入。
我已经用z-index
做了我自己的方式,所以我想禁用默认值。
我已经设置了http://jsfiddle.net/2C7yG/供您查看我的问题。 这里当我在对话框中有iframe时,重新插入后 – iframe被重建。
那有没有办法禁用这种行为?
我也想链接这个问题 ,我认为这个问题也是如此
编辑:我找到了http://jqueryui.com/upgrade-guide/1.10/#removed-stack-option
我找到了这个,但门票不会打开
编辑:好的,我发现触发这个的地方。
_moveToTop: function( event, silent ) { var moved = !!this.uiDialog.nextAll(":visible").insertBefore( this.uiDialog ).length; if ( moved && !silent ) { this._trigger( "focus", event ); } return moved; },
这是一个执行的脚本。 现在我知道我可以在jQuery中修改函数。 如何使用我自己的function扩展这部分?
这是我添加到我的脚本以禁用此行为。
jQuery.ui.dialog.prototype._moveToTop = function(event, silent) { return true; };