daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top