This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.extend({ | |
/** $().flash(options) | |
* | |
* Author: Cullen Johnson | |
* URL: https://gist.github.com/cullenjohnson/3d529bbfc7a555d1e640 | |
* | |
* Description: | |
* Flashes an element's background-color, then fades back to the element's original background-color | |
* | |
* REQUIRES jQuery 1.4+ (jQuery UI is NOT needed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** GetSearchTermRelevanceComparator | |
* Author: Cullen Johnson | |
* Github: https://github.com/cullenjohnson | |
* Website: cullenjohnson.ca | |
* | |
* Return an underscore sort comparator that can sort a list of strings based on the relevancy of the search term. | |
* Can be used to sort strings, objects with string properties, or Backbone objects with string properties. | |
* | |
* Search Priority: (Example search term: "FOO") | |
* 1. Exact match of search term ("FOO" > "super FOObar") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* FilterSelectView | |
* Creator: Cullen | |
*/ | |
FilterSelectView = Backbone.View.extend({ | |
/** ----------------------------------- | |
* DESCRIPTION | |
* ------------------------------------ | |
* |