Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: codrops/SimpleDropDownEffects
base: e1c2dd7b82
...
head fork: codrops/SimpleDropDownEffects
compare: 8e1ec8f036
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 16 files changed
  • 0 commit comments
  • 1 contributor
View
0  css/common.css 100644 → 100755
File mode changed
View
0  css/fonts/icomoon.eot 100644 → 100755
File mode changed
View
0  css/fonts/icomoon.svg 100644 → 100755
File mode changed
View
0  css/fonts/icomoon.ttf 100644 → 100755
File mode changed
View
0  css/fonts/icomoon.woff 100644 → 100755
File mode changed
View
0  css/fonts/license.txt 100644 → 100755
File mode changed
View
0  css/icons.css 100644 → 100755
File mode changed
View
0  css/style4.css 100644 → 100755
File mode changed
View
0  css/style5.css 100644 → 100755
File mode changed
View
0  css/style6.css 100644 → 100755
File mode changed
View
0  images/grid_DominikKiss_SubtlePatterns.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  index4.html 100644 → 100755
File mode changed
View
0  index5.html 100644 → 100755
File mode changed
View
0  index6.html 100644 → 100755
File mode changed
View
12 js/jquery.dropdown.js 100644 → 100755
@@ -32,7 +32,8 @@
// make sure to tune the transform origin in the stylesheet
rotated : false,
// effect to slide in the options. value is the margin to start with
- slidingIn : false
+ slidingIn : false,
+ onOptionSelect : function(opt) { return false; }
};
$.DropDown.prototype = {
@@ -120,13 +121,6 @@
}
},
- _throwHook : function( el, action, trigger ){
- var $el = $( el );
- var eventName = [ action, trigger, 'dropdown' ].join( '.' );
- var event = $.Event( eventName );
- event.value = $el.data( 'value' );
- $el.trigger( event );
- },
_initEvents : function() {
var self = this,
@@ -141,7 +135,7 @@
this.opts.on( 'click.dropdown', function() {
if( self.opened ) {
var opt = $( this );
- opt.delegate( 'li', 'click.dropdown', throwHook( this, 'opened', 'click') );
+ self.options.onOptionSelect( opt );
self.inputEl.val( opt.data( 'value' ) );
self.selectlabel.html( opt.html() );
self.close();
View
0  js/modernizr.custom.63321.js 100644 → 100755
File mode changed

No commit comments for this range

Something went wrong with that request. Please try again.