Permalink
Browse files

Add gh project page as demo.

  • Loading branch information...
ordinaryzelig committed Apr 17, 2012
1 parent 575f88f commit 367af67e9dd3ff1904268857d4dccb2e449d78c6
View
@@ -1,5 +1,12 @@
# CHANGELOG
+## v0.2.0 ???
+
+### Minor features
+
+* Follow good jQuery plugin practice:
+ * chainable.
+
## v0.1.1 2012-04-10
### Minor features
View
@@ -2,6 +2,10 @@
https://github.com/ordinaryzelig/jquery-autocompleteFloater
+## Demo
+
+http://ordinaryzelig.github.com/jquery-autocompleteFloater/
+
## Description
* Unobtrusively add jQuery autocomplete functionality to a select tag.
@@ -56,7 +60,6 @@ $('.selectTagSelector').autocompleteFloater()
## TODO
-* Follow good jQuery plugin authorigin practices: http://docs.jquery.com/Plugins/Authoring.
-* Live demo.
+* Allow passing of jQuery autocomplete options.
* Fix failing test for selecting option. The click() is not causing jasmine to behave correctly.
* Wrap in ruby gem.
@@ -20,8 +20,28 @@
<form action="/">
- <input type="text" />
- <input type="submit" />
+ <h2>jQuery Autocomplete Floater</h2>
+
+ <p>
+ Project page: <a href="https://github.com/ordinaryzelig/jquery-autocompleteFloater">https://github.com/ordinaryzelig/jquery-autocompleteFloater</a>
+ </p>
+
+ <h2>Description</h2>
+
+ <p>
+ Unobtrusively give select tags autocomplete functionality. In other words, leave the select tag alone!
+ </p>
+
+ <h2>Try it out</h2>
+
+ <p>
+ <ul>
+ <li>Click on the '+' to the right of the drop down.</li>
+ <li>Start typing an option to see jQuery autocomplete.</li>
+ <li>Click on an option.</li>
+ <li>The select tag will automatically change to that option.</li>
+ </ul>
+ </p>
<div>
<select>
@@ -36,9 +36,16 @@ describe 'asdf', ->
@textField.autocomplete('search', 'sa') # As if typing 'saab' to trigger jQuery autocomplete.
expect($('.ui-autocomplete:visible').length).toEqual(1)
+ # This fails.
it 'automatically changes the select tag value when something chosen', ->
@textField.autocomplete('search', 'sa')
link = $('.ui-autocomplete li a:first')
# This fails.
link.click()
expect(@selectTag.val()).toEqual(2)
+
+ describe 'jQuery plugin', ->
+
+ it 'is chainable', ->
+ @selectTag.autocompleteFloater().hide()
+ expect(@selectTag.is(':hidden')).toEqual(true)
@@ -1,7 +1,7 @@
'========================='
'autocompleteFloater'
''
-'v0.1.1'
+'v0.2.0'
''
'https://github.com/ordinaryzelig/jquery-autocompleteFloater'
'This software is offered as is without warranty, yada yada.'
@@ -2,7 +2,7 @@
'=========================';
'autocompleteFloater';
'';
- 'v0.1.1';
+ 'v0.2.0';
'';
'https://github.com/ordinaryzelig/jquery-autocompleteFloater';
'This software is offered as is without warranty, yada yada.';

0 comments on commit 367af67

Please sign in to comment.