The Arcive of vBulletin Modifications Site. |
|
Javascript links in popup menus! Details »»
|
|||||||||||||||||||||||||
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> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Screen Shots?
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
||||
|
||||
|
demo?
|
|
#5
|
|||
|
|||
|
Not available demo right now... I will update later
|
|
#6
|
||||
|
||||
|
Can't you just do the label tags for this?
|
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
||||
|
||||
|
*** installs ***
Not sure if it works or not. Most of my popup menus already had click on the box feature. In the 'User CP' is where I wanted it to work but those are not popups so not sure ?? |
|
#9
|
||||
|
||||
|
Thanks man!
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|