Sha256: dff0a5d9afc996f2386138038b0d08a29dfc357a8b4c0029acd748768ef4f84a

Contents?: true

Size: 1.01 KB

Versions: 12

Compression:

Stored size: 1.01 KB

Contents

- current_auto_complete = session[:auto_complete] || :leads
= content_for(:javascript_epilogue) do
  :plain
    document.observe("dom:loaded", function() {
      new crm.Popup({
        trigger     : "jumper",
        target      : "jumpbox",
        under       : "welcome",
        appear      : 0.3,
        fade        : 0.3,
        before_show : function() {
          $("jumper").className = "selected";
          $("jumpbox_label").innerHTML = ""
          $("jumpbox_label").hide();
          $("jumpbox_menu").show();
          crm.auto_complete("#{current_auto_complete}");
        },
        after_show  : function() {
          $("auto_complete_query").focus();
        },
        after_hide  : function() {
          $("jumper").className = "";
        }
      });
    });

#jumpbox{ hidden }
  %span#jumpbox_menu= jumpbox(current_auto_complete)
  %span#jumpbox_label{ hidden }
  %br
  = text_field_tag "auto_complete_query", nil, :style => "width: 310px", :autocomplete => :off
  .auto_complete#auto_complete_dropdown

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fat_free_crm-0.13.2 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.12.3 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.12.2 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.13.1 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.12.1 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.13.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.12.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.11.4 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.11.3 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.11.2 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.11.1 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.11.0 app/views/layouts/_jumpbox.html.haml