0

我正在尝试使用 hinclude.js 异步加载我的 Modals 的内容。所以我在我的模态中渲染了一个远程页面,但我不想在模态加载的第二秒请求它(如默认模态)。由于我想确保链接在没有 javascript 的情况下也能正常工作,所以我想使用指向远程页面的真实链接:

<a href="/web/app_dev.php/profile/suche" data-toggle="modal" data-target="#modal-searchUser">
<i class="icon-search icon-white"></i>Leute finden</a>

问题是内容已经在模式中,但由于href="/web/app_dev.php/profile/suche" 内容再次加载。

如何防止 Twitter 在点击时异步加载内容?

我已经尝试过:

$('[data-target="#modal-searchUser"]').click(function(e) {
        e.preventDefault();
        $('#strego_user_search_search').focus();
    });
4

0 回答 0