I am using a template for my design and it has a file called "supersub.min.js" - The issue is that when I use this particular file it appears to disable the submit button for the cart, the button for creating a new customer, and once the customer is logged in it disables the next button on the "orderform.php". I can still see the original button if I refresh for about 2 seconds, so I think it is covering it up not replacing it like it does with the rest of the buttons. I need this file because it holds the log-in screen (content box) that pops down from the top, settings for some of the css, and it also controls the light box settings. I have kept this file in the design and removed all css button styles from the template so that just the default CW button are used and it still will not function.
- /*
- * Supersubs v0.2b - jQuery plugin
- * Copyright (c) 2008 Joel Birch
- *
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- */
- ;(function($){
- $.fn.supersubs=function(options){
- var opts=$.extend({},$.fn.supersubs.defaults,options);
- return this.each(
- function(){
- var $$=$(this);
- var o=$.meta?$.extend({},opts,$$.data()):opts;
- var fontsize=$('<li id="menu-fontsize">—</li>').css({'padding':0,'position':'absolute','top':'-999em','width':'auto'}).appendTo($$).width();
- $('#menu-fontsize').remove();$ULs=$$.find('ul');
- $ULs.each(function(i){
- var $ul=$ULs.eq(i);
- var $LIs=$ul.children();
- var $As=$LIs.children('a');
- var liFloat=$LIs.css('white-space','nowrap').css('float');
- var emWidth=$ul.add($LIs).add($As).css({'float':'none','width':'auto'}).end().end()[0].clientWidth/fontsize;
- emWidth+=o.extraWidth;
- if(emWidth>o.maxWidth){emWidth=o.maxWidth}
- else if(emWidth<o.minWidth){emWidth=o.minWidth}emWidth+='em';
- $ul.css('width',emWidth);
- $LIs.css({'float':liFloat,'width':'100%','white-space':'normal'}).each(
- function(){
- var $childUl=$('>ul',this);
- var offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,emWidth)
- }
- )
- })
- }
- )
- };$.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);