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