View FilterSelectView.js
/** | |
* FilterSelectView | |
* Creator: Cullen | |
*/ | |
FilterSelectView = Backbone.View.extend({ | |
/** ----------------------------------- | |
* DESCRIPTION | |
* ------------------------------------ | |
* |
View GetSearchTermRelevanceComparator.js
/** 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") |
View JQuery flash.js
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) |