Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#1903 closed bug (fixed)

place shadow for elements of specific class

Reported by: SventB Owned by:
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

Description

Hello,

I had problems with deactivating a shadow for a couple of elements:

$(".exampleshadow").shadowDisable();

Only the shadow of the first element is disabled.

I think this will fix it:

	$.fn.shadowEnable = function() {
		return this.each(function() {
			var cur = $(this);
			if(cur.next().is(".fx-shadow")) cur.next().show();
		});
	}
	
	$.fn.shadowDisable = function() {
		return this.each(function() {
			var cur = $(this);
			if(cur.next().is(".fx-shadow")) cur.next().hide();
		});
	}

Change History (3)

comment:1 Changed 15 years ago by brandon

Resolution: fixed
Status: newclosed

Fixed in Rev [3827]

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.2

Milestone 1.2.2 deleted

comment:3 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.