Sha256: a474b50d93ca1e5dfd0dc4c946550885e4129b36097df69251a0e5dd57b8d269

Contents?: true

Size: 1002 Bytes

Versions: 7

Compression:

Stored size: 1002 Bytes

Contents

/*!
 * jQuery UI Effects Highlight 1.10.2
 * http://jqueryui.com
 *
 * Copyright 2013 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/highlight-effect/
 *
 * Depends:
 *	jquery.ui.effect.js
 */
(function( $, undefined ) {

$.effects.effect.highlight = function( o, done ) {
	var elem = $( this ),
		props = [ "backgroundImage", "backgroundColor", "opacity" ],
		mode = $.effects.setMode( elem, o.mode || "show" ),
		animation = {
			backgroundColor: elem.css( "backgroundColor" )
		};

	if (mode === "hide") {
		animation.opacity = 0;
	}

	$.effects.save( elem, props );

	elem
		.show()
		.css({
			backgroundImage: "none",
			backgroundColor: o.color || "#ffff99"
		})
		.animate( animation, {
			queue: false,
			duration: o.duration,
			easing: o.easing,
			complete: function() {
				if ( mode === "hide" ) {
					elem.hide();
				}
				$.effects.restore( elem, props );
				done();
			}
		});
};

})(jQuery);

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
h2ocube_rails_assets-0.0.19 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js
h2ocube_rails_assets-0.0.18 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js
h2ocube_rails_assets-0.0.17 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js
h2ocube_rails_assets-0.0.16 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js
h2ocube_rails_assets-0.0.15 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js
h2ocube_rails_assets-0.0.14 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js
h2ocube_rails_assets-0.0.13 vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js