Changeset 1272
- Timestamp:
- 09/27/06 04:27:45 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/themes/scribbish/views/articles/_comment_form.rhtml
r1233 r1272 12 12 <label>Name:<br /> 13 13 <%= text_field "comment", "author" %> 14 <small>(<%= link_to_function("leave url/email »", " newEffect.toggle('extra_fields', 'blind', {duration: .3})") %>)</small>14 <small>(<%= link_to_function("leave url/email »", "Effect.toggle('extra_fields', 'blind', {duration: .3})") %>)</small> 15 15 </label> 16 16 </p> … … 40 40 41 41 <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');" %> 44 47 <%= image_tag '/images/theme/spinner.gif', :id => 'spinner', :style => 'display:none' %> 45 48 </p>
