Skip to main content

Search and Top Navigation

#1903 closed bug (fixed)

Opened November 08, 2007 12:23PM UTC

Closed November 15, 2007 01:57AM UTC

Last modified February 26, 2009 11:16AM UTC

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();
		});
	}
Attachments (0)
Change History (3)

Changed November 15, 2007 01:57AM UTC by brandon comment:1

resolution: → fixed
status: newclosed

Fixed in Rev [3827]

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.2

Milestone 1.2.2 deleted

Changed February 26, 2009 11:16AM UTC by paul comment:3

milestone: → 1.5