Sha256: 80fafb28b8ee138e7766a758e06de7e9c12feb9258a627b02ef6a7241c782f15
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
.nav-tabs-custom %ul.nav.nav-tabs %li.active %a{'aria-expanded': 'false', "data-toggle" => "tab", :href => "#tab_5"} Action .kf-signal.action_signal %li.pull-right %a{onclick: "controls.saveOnlyAction(#{@view.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 .tab-content #tab_5.tab-pane.active %div.action.code-container %textarea#code-action{:name => "code"} = @view.output_action = render "editor_views" :javascript codeAction.codeMirrorAction(); var tab = `#{@view.name}.html.erb`; var id = `#{@view.id}`; var ready = { action: false } $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { if( ready.action === false ) { codeAction.codeMirrorAction(); ready.action = true; } }) $(document).bind('keydown',function(e) { if(e.ctrlKey && (e.which == 83)) { e.preventDefault(); codeAction.save(id); } });
Version data entries
3 entries across 3 versions & 1 rubygems