Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#dialog").dialog({
- bgiframe: true,
- autoOpen: false,
- height: 300,
- modal: true,
- buttons: {
- 'Select User': function() {
- // $('.primary_fname').val('Test');
- // $(this).dialog('close');
- $('#search').ajaxForm({target:'#search_results'});
- },
- Cancel: function() {
- $(this).dialog('close');
- }
- },
- close: function() {
- }
- });
- <div id="dialog" title="Search">
- <% form_tag({:action => 'search', :controller => 'people'}, :id => 'search',:method => 'get') do %>
- <%= text_field_tag :search, h(params[:search]), {:autocomplete => 'off', :class => 'search',:size => 26} %>
- <input type="image" src="/images/buttons/update.gif" name="image" class="button" title="Update" />
- <% end %>
- <div id="search_results" style="margin:1em 0;"> </div>
- </div>
Add Comment
Please, Sign In to add comment