Skip to content

Commit

Permalink
Add comments for options
Browse files Browse the repository at this point in the history
  • Loading branch information
springbok committed Dec 23, 2010
1 parent c8d274d commit c729b07
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/2dc_jqgrid.rb
Expand Up @@ -326,9 +326,12 @@ def jqgrid(title, id, action, columns = [], options = {})
})
.navGrid('##{id}_pager',
{edit:#{edit_button},add:#{options[:add]},del:#{options[:delete]},view:#{options[:view]},search:false,refresh:true},
{width:#{options[:form_width]},closeAfterEdit:true,afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'edit');}},
{width:#{options[:form_width]},closeAfterAdd:true,afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'add');}},
{closeAfterEdit:true,afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');}}
// Edit options
{closeOnEscape:true,modal:true,width:#{options[:form_width]},closeAfterEdit:true,afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'edit');}},
// Add options
{closeOnEscape:true,modal:true,width:#{options[:form_width]},closeAfterAdd:true,afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'add');}},
// Delete options
{closeOnEscape:true,modal:true,afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');}}
)
#{search}
#{multihandler}
Expand Down

0 comments on commit c729b07

Please sign in to comment.