Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make a minified version

  • Loading branch information...
commit 3933768479e11f743ae7297af70c7ca2e5f39803 1 parent acb6954
@bicouy0 authored
Showing with 26 additions and 2 deletions.
  1. +14 −2 Makefile
  2. +6 −0 lib/ajax-chosen.js
  3. +6 −0 src/ajax-chosen.coffee
View
16 Makefile
@@ -1,2 +1,14 @@
-all:
- coffee --lint -o lib/ -c src/
+COFFEESCRIPT = coffee --lint
+GOOGCLOSURE = google-closure
+
+all: lib/ajax-chosen.js lib/ajax-chosen.min.js
+
+lib/%.js: src/%.coffee
+ $(COFFEESCRIPT) -o lib/ -c src/
+
+lib/%.min.js: lib/%.js
+ $(GOOGCLOSURE) --js $< --js_output_file $@
+
+clean:
+ @rm -f lib/*.js
+
View
6 lib/ajax-chosen.js
@@ -1,4 +1,10 @@
+ /*
+ ajax-chosen
+ A complement to the jQuery library Chosen that adds ajax autocomplete
+ https://github.com/bicouy0/ajax-chosen
+ */
+
(function($) {
return $.fn.ajaxChosen = function(options, callback) {
var defaultedOptions, inputSelector, multiple, select;
View
6 src/ajax-chosen.coffee
@@ -1,3 +1,9 @@
+###
+ajax-chosen
+A complement to the jQuery library Chosen that adds ajax autocomplete
+https://github.com/bicouy0/ajax-chosen
+###
+
(($) ->
$.fn.ajaxChosen = (options, callback) ->
Please sign in to comment.
Something went wrong with that request. Please try again.