Guest User

Untitled

a guest
Jun 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. $("#dialog").dialog({
  2. bgiframe: true,
  3. autoOpen: false,
  4. height: 300,
  5. modal: true,
  6. buttons: {
  7. 'Select User': function() {
  8. // $('.primary_fname').val('Test');
  9. // $(this).dialog('close');
  10. $('#search').ajaxForm({target:'#search_results'});
  11. },
  12. Cancel: function() {
  13. $(this).dialog('close');
  14. }
  15. },
  16. close: function() {
  17. }
  18. });
  19.  
  20.  
  21. <div id="dialog" title="Search">
  22.  
  23. <% form_tag({:action => 'search', :controller => 'people'}, :id => 'search',:method => 'get') do %>
  24. <%= text_field_tag :search, h(params[:search]), {:autocomplete => 'off', :class => 'search',:size => 26} %>
  25. <input type="image" src="/images/buttons/update.gif" name="image" class="button" title="Update" />
  26. <% end %>
  27.  
  28. <div id="search_results" style="margin:1em 0;"> </div>
  29.  
  30. </div>
Add Comment
Please, Sign In to add comment