diff --git a/jquery.dropkick-1.0.0.js b/jquery.dropkick-1.0.0.js deleted file mode 100644 index b8f75a5c..00000000 --- a/jquery.dropkick-1.0.0.js +++ /dev/null @@ -1,406 +0,0 @@ -/** - * DropKick - * - * Highly customizable element that gets dropkicked - lists = [], - - // Convenience keys for keyboard navigation - keyMap = { - 'left' : 37, - 'up' : 38, - 'right' : 39, - 'down' : 40, - 'enter' : 13 - }, - - // HTML template for the dropdowns - dropdownTemplate = [ - '
', - '', - '{{ label }}', - '', - '
', - '', - '
', - '
' - ].join(''), - - // HTML template for dropdown options - optionTemplate = '
  • {{ text }}
  • ', - - // Some nice default values - defaults = { - startSpeed : 1000, // I recommend a high value here, I feel it makes the changes less noticeable to the user - theme : false, - change : false - }, - - // Make sure we only bind keydown on the document once - keysBound = false - ; - - // Called by using $('foo').dropkick(); - methods.init = function (settings) { - settings = $.extend({}, defaults, settings); - - return this.each(function () { - var - // The current list and place our new one in front of it - $select.before($dk); - - // Update the reference to $dk - $dk = $dk.fadeIn(settings.startSpeed); - - // Save the current theme - theme = settings.theme ? settings.theme : 'default'; - $dk.addClass('dk_theme_' + theme); - data.theme = theme; - - // Save the updated $dk reference into our data object - data.$dk = $dk; - - // Save the dropkick data onto the lists + * https://github.com/JamieLottering/DropKick + * + * © 2011 Jamie Lottering + * + * + * Bug fixes by owenallenaz + * https://github.com/owenallenaz/DropKick + * + * 'Key Search' update by Curt Kirkhoff + * https://github.com/kirkhoff/DropKick + */ +(function ($, window, document) { + + var ie6 = false; + + // Help prevent flashes of unstyled content + if ($.browser.msie && $.browser.version.substr(0, 1) < 7) { + ie6 = true; + } + + var + // Public methods exposed to $.fn.dropkick() + methods = {}, + + // Cache every element + $select = $(this), + + // Store a reference to the originally selected