Changeset 1272

Show
Ignore:
Timestamp:
09/27/06 04:27:45 (2 years ago)
Author:
scott
Message:

Scribbish update 3. Closes #1100

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/themes/scribbish/views/articles/_comment_form.rhtml

    r1233 r1272  
    1212    <label>Name:<br />  
    1313      <%= text_field "comment", "author" %> 
    14       <small>(<%= link_to_function("leave url/email &#187;", "new Effect.toggle('extra_fields', 'blind', {duration: .3})") %>)</small> 
     14      <small>(<%= link_to_function("leave url/email &#187;", "Effect.toggle('extra_fields', 'blind', {duration: .3})") %>)</small> 
    1515    </label> 
    1616  </p> 
     
    4040   
    4141  <p> 
    42     <input type="button" value="Preview" onclick="new Ajax.Updater('preview','<%= url_for :action => 'comment_preview' %>',{asynchronous:true,evalScripts:true,parameters:Form.serialize('commentform'),onComplete:function(request){Element.show('preview')}});return false;" />       
    43     <%= submit_tag 'Submit' %> 
     42    <%= submit_to_remote('preview', 'Preview!', 
     43                         :update => 'preview', 
     44                         :complete => "Element.show('preview')", 
     45                         :url    => { :action => 'comment_preview' }) %> 
     46    <%= submit_tag 'Submit', :onclick => "this.disabled=true; Element.hide('preview');" %> 
    4447    <%= image_tag '/images/theme/spinner.gif', :id => 'spinner', :style => 'display:none' %> 
    4548  </p>