Sha256: 529a271eb8e621ce65d7896b9e093b7568fde02bb3a3a6568142652faeea516c

Contents?: true

Size: 1.39 KB

Versions: 17

Compression:

Stored size: 1.39 KB

Contents

.container
  .nav-tabs-custom
    %ul.nav.nav-tabs
      %li.active
        %a{'aria-expanded': 'false', "data-toggle" => "tab", :href => "#tab_5"}
          = @callback_function.name
          .kf-signal.callback_signal
      %li.pull-right
        %a{onclick: "codeCallback.save(#{@callback_function.id})", title: t('keppler.actions.save')}
          %i.fa.fa-save
      %li.pull-right
        %a#btn-views-editor{title: t('keppler.actions.views')}
          %i.fa.fa-cog
      %li.pull-right
        = link_to admin_frontend_callback_functions_path do
          %i.fa.fa-list
          %span.hidden-xs
            = t('keppler.actions.callbacks_list')
    .tab-content
      #tab_5.tab-pane.active
        %div.action.code-container
          %textarea#code-callback{:name => "code"}
            = @callback_function.callback_code


  = render "editor_views"

  :javascript
    codeCallback.codeMirrorCallback();
    var tab = `#{@callback_function.name}`;
    var id = `#{@callback_function.id}`;
    var ready = { callback_function: false }

    $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
      if( ready.callback_function === false ) {
        codeCallback.codeMirrorCallback();
        ready.callback_function = true;
      }

    })

    $(document).bind('keydown',function(e) {
      if(e.ctrlKey && (e.which == 83)) {
        e.preventDefault();
        codeCallback.save(id);
      }
    });

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
keppler-2.1.15 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.14 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.13 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.12 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.11 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.10 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.9 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.8 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.7 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.6 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.5 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.4 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.3 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.2 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.1 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1.pre.p1 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml
keppler-2.1 installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/callback_functions/editor.html.haml