<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>contrib/scaffold_jquery_autocomplete/README</filename>
    </added>
    <added>
      <filename>contrib/scaffold_jquery_autocomplete/jquery.ui.se_autocomplete.css</filename>
    </added>
    <added>
      <filename>contrib/scaffold_jquery_autocomplete/jquery.ui.se_autocomplete.js</filename>
    </added>
    <added>
      <filename>lib/scaffolding_extensions/jquery_helper.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,19 +18,29 @@ The scaffolding analogy is misleading, Scaffolding Extensions is not really
 scaffolding--it is a completely functional structure that you can easily modify
 to better suit your needs.
 
-The current version of Scaffolding Extensions is quite different from older
-versions (svn revision 89 and previous).  For upgrading from an older version,
-see the conversion.txt file.
-
-Scaffolding Extensions currently supports Rails 2.0, Ramaze 0.3.5, Camping 1.5,
-and Sinatra 0.1.7 web frameworks.  It supports the ActiveRecord and DataMapper
-ORMs.  Support for other web frameworks and ORMs can be added, see the
+Scaffolding Extensions currently supports:
+
+* Web Frameworks
+  * Rails 2.0
+  * Ramaze 0.3.5
+  * Camping 1.5
+  * Sinatra 0.1.7
+* Object/Relational Mappers
+  * ActiveRecord 2.0
+  * DataMapper 0.2.5
+* Javascript Libaries (used for Ajax/Autocompleting)
+  * Prototype 1.6.0.1
+  * JQuery 1.2.3
+  
+Support for other web frameworks and ORMs can be added, see the
 controller_spec.txt and model_spec.txt files for the methods that need to be
 defined.
 
-Older versions of Rails should be able to use an older version of the plugin,
-which won't be discussed further as it is substantially different from the
-current version (see the conversion.txt file for details).
+The current version of Scaffolding Extensions is quite different from older
+versions (svn revision 89 and previous).  Older versions of Rails should be
+able to use an older version of the plugin, which won't be discussed further as
+it is substantially different from the current version (see the conversion.txt
+file for details).
 
 You can get Scaffolding Extensions via subversion or as a tarball:
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -62,6 +62,12 @@ module ScaffoldingExtensions
     def auto_complete_css
       auto_complete_skip_style ? '' : AUTO_COMPLETE_CSS
     end
+    
+    # The javascript library to use (defaults to Prototype)
+    def javascript_library=(jslib)
+      require &quot;scaffolding_extensions/#{jslib.downcase}_helper&quot;
+      ScaffoldingExtensions::Helper.send(:include, const_get(&quot;#{jslib}Helper&quot;))
+    end
   end
 end
 
@@ -71,7 +77,6 @@ require 'scaffolding_extensions/meta_controller'
 require 'scaffolding_extensions/meta_model'
 require 'scaffolding_extensions/model'
 require 'scaffolding_extensions/overridable'
-require 'scaffolding_extensions/prototype_helper'
 
 require 'scaffolding_extensions/controller/action_controller' if defined? ActionController::Base
 require 'scaffolding_extensions/controller/camping' if defined? Camping::Controllers
@@ -80,4 +85,5 @@ require 'scaffolding_extensions/controller/sinatra' if defined? Sinatra
 
 require 'scaffolding_extensions/model/active_record' if defined? ActiveRecord::Base
 require 'scaffolding_extensions/model/data_mapper' if defined? DataMapper::Base
-  
+
+ScaffoldingExtensions.javascript_library = 'Prototype'</diff>
      <filename>lib/scaffolding_extensions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -289,8 +289,7 @@ module ScaffoldingExtensions
       # are passed to scaffold_javascript_autocompleter.  The options are passed to scaffold_field_tag.
       def scaffold_text_field_tag_with_auto_complete(id, model_name, association = nil, options = {})
         content = ScaffoldingExtensions.auto_complete_css.dup
-        content &lt;&lt; scaffold_field_tag(:string, {:value=&gt;'', :id=&gt;id}.merge(options))
-        content &lt;&lt; &quot;\n&lt;div class='auto_complete' id='#{id}_scaffold_auto_complete'&gt;&lt;/div&gt;\n&quot;
+        content &lt;&lt; scaffold_field_tag(:string, {:value=&gt;'', :id=&gt;id, :class=&gt;'autocomplete'}.merge(options))
         content &lt;&lt; scaffold_javascript_autocompleter(id, model_name, association)
         content
       end</diff>
      <filename>lib/scaffolding_extensions/helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,6 +30,7 @@ module ScaffoldingExtensions
       # (with the association if one is given), using the get method, and displaying values
       # in #{id}_scaffold_auto_complete.
       def scaffold_javascript_autocompleter(id, model_name, association)
+        &quot;\n&lt;div class='auto_complete' id='#{id}_scaffold_auto_complete'&gt;&lt;/div&gt;\n&quot; &lt;&lt;
         scaffold_javascript_tag(&quot;var #{id}_auto_completer = new Ajax.Autocompleter('#{id}', '#{&quot;#{id}_scaffold_auto_complete&quot;}', '#{scaffold_url(&quot;scaffold_auto_complete_for_#{model_name}&quot;)}', {paramName:'id', method:'get'#{&quot;, parameters:'association=#{association}'&quot; if association}})&quot;)
       end
       </diff>
      <filename>lib/scaffolding_extensions/prototype_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ff9da00d1d819c6371d50ea10f979b2b67c79bb</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </author>
  <url>http://github.com/jeremyevans/scaffolding_extensions/commit/ccca3e6ba6db28595001005ee98c7402b9e2795d</url>
  <id>ccca3e6ba6db28595001005ee98c7402b9e2795d</id>
  <committed-date>2008-02-28T13:31:46-08:00</committed-date>
  <authored-date>2008-02-28T13:31:46-08:00</authored-date>
  <message>Add ability to use JQuery instead of Prototype as the javascript library for Ajax/Autocompleting
Add contrib/scaffold_jquery_autocomplete, with css and js files necessary for autocompleting with JQuery
Add ScaffoldingExtensions.javascript_library=, for overriding the default javascript library (Prototype) with another (e.g. ScaffoldingExtensions.javascript_library = 'JQuery')
Move the autocomplete div from Helper#scaffold_text_field_tag_with_auto_complete to PrototypeHelper#scaffold_javascript_autocompleter, since it isn't necessary with JQuery autocompleting
Update README to make it easier to read</message>
  <tree>1ab57c6814e4c7918c7fd69c058a47113ffaf894</tree>
  <committer>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </committer>
</commit>
