Sha256: e9fa63d313bcd850430b10cd0e795dc72a6da3f230f9bbd5105f840d5cbcce1b

Contents?: true

Size: 1.06 KB

Versions: 13

Compression:

Stored size: 1.06 KB

Contents

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

#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

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.22.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.21.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.20.1 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.20.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.19.2 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.19.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.18.2 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.17.3 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.18.1 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.18.0 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.17.2 app/views/layouts/_jumpbox.html.haml
fat_free_crm-0.17.1 app/views/layouts/_jumpbox.html.haml