#71

New

fixes for non-javascript fallback code

Reported by jimc99999 on Ajax Scaffold · 16/02/2007 04:28:56

Assigned to:
rrwhite
Priority:
Normal
Status:
New
Category:
None
Version:
3.1.9

set options properly for new and edit forms:

new:
create:
@options = { :scaffold_id => params[:scaffold_id], :action => “create#{suffix}” }

edit:
update:
@options = { :scaffold_id => params[:scaffold_id], :action => “update#{suffix}”, :id => params[:id] }

remove post verification for :delete#{suffix} ; without javascript, plain link can’t post;

return_to_main fixed by merging parameters; this way sorting, etc. will actually work;

def #{prefix}return_to_main action = “#{suffix}” == "" ? “#{prefix}list” : “index” redirect_to params.merge(:action => action) end

Attachments Upload

No attachment has been uploaded, yet.


Loading comments...