inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jun 26, 2011 23:50:11 GMT -8
Add IDs to Category, Board and Skin Dropdowns by SubDevoTested in IE, FF, Opera, Safari and Chrome. This code will add the ID to all dropdowns for Categories, Boards and Skins. This is especially useful if you have replaced your Category or Board titles with an image using UBBC. If you have done that, then you know that the dropdowns are blank and it is almost impossible to select the correct board or category. This code "fixes" that issue. And yes, I know I already have a code to add IDs to the skin dropdowns, but by adding only 5 more characters to this code, why not include it? Enjoy!!! SubDevo Location: Main Footer<script type="text/javascript"> /* Add IDs to Category, Board and Skin Dropdowns by SubDevo */ /* Main Footer - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
if(!/^((board|membergroup)modify|home)$/.test(pb_action)){ var n=document.getElementsByTagName("select"),a,b,i,x=-1; while(n[++x]){ if(/^(placement(cat|board)|(sub)?id|cat|skin)$/.test(n[x].name)){ a=n[x].options; i=-1; while(a[++i]){b=a.value; if(b){a.text+=" (id: "+b+")";}} }}} </script>
|
|