0
我正在使用vBulletin,并且当前有人使用FireFox单击“选择文件”上载附件时,文件窗口提示在其计算机上的所有其他窗口后面打开。修复Firefox文件选择窗口打开所有其他窗口
这是我发现的代码,我认为涉及到函数调用的窗口中打开:
<div id="asset_addfiles">
<div id="selectall2"<vb:if condition="!$attachcount"> class="hidden"</vb:if>><label for="selectallbox2">{vb:rawphrase select_all} <input type="checkbox" id="selectallbox2" name="selectall2" value="1" tabindex="1" /></label></div>
{vb:rawphrase selected_attachments}
<button type="button" id="insert_inline" class="button" title="{vb:rawphrase insert_attachments_in_window}">{vb:rawphrase insert_inline_x, 0}</button>
<button type="button" id="insert_attachment" class="button">{vb:rawphrase done}</button>
</div>
<script type="text/javascript">
<!--
var assetobj = new vB_Asset("assetobj", "asset_category_tree", "{vb:raw posthash}", "{vb:raw poststarttime}", "{vb:raw contenttypeid}", "{vb:raw bbuserinfo.userid}", {vb:raw auth_type}, {vb:raw asset_enable}, "{vb:raw insertinline}");
<vb:if condition="$show['updateparent']">
if (typeof window.opener != 'undefined' && typeof window.opener.vB_Attachments != 'undefined')
{
window.opener.vB_Attachments.reset();
{vb:raw new_attachlist_js}
}
</vb:if>
//-->
</script>
<!-- This element is cloned via javascript since IE doesn't like one to alter file input -->
<form action="">
<input id="uploadinput" type="file" class="bginput uploadinput" name="attachment[]" size="30" style="display:none" tabindex="1" />
</form>
任何帮助是极大的赞赏。谢谢
有从出现的文件选择其中一个弹出式窗口?似乎显示的代码太多了,是所有需要的,并且它应该在点击时预先显示。 – dandavis 2014-10-07 18:19:47