Bug Tracker

Modify

Ticket #1903 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

place shadow for elements of specific class

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

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

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in Rev [3827]

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.