Post by cyclops12 » Thu Mar 02, 2017 1:42 am

This isnt default file

Newbie

Posts

Joined
Sun Sep 27, 2015 1:10 am

Newbie

Posts

Joined
Sat Jan 14, 2012 1:02 am

Post by cyclops12 » Fri Mar 03, 2017 12:58 am

ADD Creative wrote:
Thu Mar 02, 2017 6:33 pm
It matches the tabs.js in OpenCart 1.4.9.
Oops my bad, i only checked back to 1.5

Newbie

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by k2tec » Fri Mar 03, 2017 10:38 pm

Code: Select all

$.tabs = function(selector, start) {
	$(selector).each(function(i, element) {
		$($(element).attr('tab')).css('display', 'none');
		
		$(element).click(function() {
			$(selector).each(function(i, element) {
				$(element).removeClass('selected');
				
				$($(element).attr('tab')).css('display', 'none');
			});
			
			$(this).addClass('selected');
			
			$($(this).attr('tab')).css('display', 'block');
		});
	});
	
	if (!start) {
		start = $(selector + ':first').attr('tab');
	}

	$(selector + '[tab=\'' + start + '\']').trigger('click');
};
but the rest is injected

https://4easyhosting.com


User avatar
Newbie

Posts

Joined
Mon Apr 12, 2010 8:06 pm

Who is online

Users browsing this forum: No registered users and 4 guests