Mercurial > hg > ismi-richfaces
comparison src/main/webapp/imageServer/resources/js/jquery-ui-1.10.4/ui/jquery.ui.effect-highlight.js @ 7:764f47286679
(none)
author | jurzua |
---|---|
date | Wed, 29 Oct 2014 14:28:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:ded3bccf2cf9 | 7:764f47286679 |
---|---|
1 /*! | |
2 * jQuery UI Effects Highlight 1.10.4 | |
3 * http://jqueryui.com | |
4 * | |
5 * Copyright 2014 jQuery Foundation and other contributors | |
6 * Released under the MIT license. | |
7 * http://jquery.org/license | |
8 * | |
9 * http://api.jqueryui.com/highlight-effect/ | |
10 * | |
11 * Depends: | |
12 * jquery.ui.effect.js | |
13 */ | |
14 (function( $, undefined ) { | |
15 | |
16 $.effects.effect.highlight = function( o, done ) { | |
17 var elem = $( this ), | |
18 props = [ "backgroundImage", "backgroundColor", "opacity" ], | |
19 mode = $.effects.setMode( elem, o.mode || "show" ), | |
20 animation = { | |
21 backgroundColor: elem.css( "backgroundColor" ) | |
22 }; | |
23 | |
24 if (mode === "hide") { | |
25 animation.opacity = 0; | |
26 } | |
27 | |
28 $.effects.save( elem, props ); | |
29 | |
30 elem | |
31 .show() | |
32 .css({ | |
33 backgroundImage: "none", | |
34 backgroundColor: o.color || "#ffff99" | |
35 }) | |
36 .animate( animation, { | |
37 queue: false, | |
38 duration: o.duration, | |
39 easing: o.easing, | |
40 complete: function() { | |
41 if ( mode === "hide" ) { | |
42 elem.hide(); | |
43 } | |
44 $.effects.restore( elem, props ); | |
45 done(); | |
46 } | |
47 }); | |
48 }; | |
49 | |
50 })(jQuery); |