<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,7 +32,8 @@ module WillPaginate
       :params         =&gt; nil,
       :renderer       =&gt; 'WillPaginate::LinkRenderer',
       :page_links     =&gt; true,
-      :container      =&gt; true
+      :container      =&gt; true,
+      :update         =&gt; nil # DOM element to update
     }
     mattr_reader :pagination_options
 
@@ -297,7 +298,12 @@ module WillPaginate
     end
 
     def page_link(page, text, attributes = {})
-      @template.link_to text, url_for(page), attributes
+      if @options[:update].nil?
+        @template.link_to text, url_for(page), attributes
+      else
+        # Ajax update
+        @template.link_to_remote text, {:url =&gt; url_for(page), :update =&gt; @options[:update]}, :html =&gt; attributes
+      end
     end
 
     def page_span(page, text, attributes = {})</diff>
      <filename>lib/will_paginate/view_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f161d99c0cd4517b4954db214e49ba606ec70277</id>
    </parent>
  </parents>
  <author>
    <name>Olivier Bonnaure</name>
    <email>olivier@imac-de-olivier-bonnaure.local</email>
  </author>
  <url>http://github.com/solisoft/will_paginate/commit/4bd532c49ed9071b6c496152a4ed8a5285b045e1</url>
  <id>4bd532c49ed9071b6c496152a4ed8a5285b045e1</id>
  <committed-date>2008-10-16T02:35:40-07:00</committed-date>
  <authored-date>2008-10-16T02:35:40-07:00</authored-date>
  <message>Ajax support</message>
  <tree>875b69a2e6c6ad13672d630c9c5afbd16a8fb9d2</tree>
  <committer>
    <name>Olivier Bonnaure</name>
    <email>olivier@imac-de-olivier-bonnaure.local</email>
  </committer>
</commit>
