|
Javascript links in popup menus!
This modification is in the archives.
What is this hack?
Have you ever noticed that when there are links in the popup menus that use javascript, you must click on the text for the link to work? For example try "Quick Links->Open Buddy List" in this forum. If you just click on the td area and not on the text, the popup window doesn't show up. You can fix this with this hack! Modification: 1)Open ./clientscript/vbulletin_menu.js 2)Find: Code:
tds[i].onclick = vB_Popup_Events.prototype.menuoption_onclick_link; Code:
var alphas = fetch_tags(tds[i], 'a');
if (alphas[0].onclick) {
tds[i].onclick = alphas[0].onclick;
} else {
tds[i].onclick = vB_Popup_Events.prototype.menuoption_onclick_link;
}
Code:
<td class="vbmenu_option"><a href="#" onclick="doSomething();">Something</a></td> Download This modification is archived and cannot be downloaded. Screenshots
|
|||||||||