Sha256: 85be133f46d4e86dab1b8462fc0b87499a40296adc6075fd91a87b8d2c15a78a
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
:javascript function get_panel_blocks(){ //var x = get_current_tab().find('#panel-blocks').first(); return $('#panel-blocks').first(); } function init_panel_blocks(path){ return load_panel_blocks(path); } function load_panel_blocks(path){ var lang = get_current_tab_lang(); console.log("lang="+lang); // var r = Math.random(); $.get("#{panel_blocks_templates_path}?path="+encodeURIComponent(path)+"&r="+r, function(data, status){ get_panel_blocks().html(data); }); } $(document).ready(function() { $( ".tab-content" ).on( "click", "#panel-blocks a.link_block_insert", function( e ) { e.preventDefault(); var lang = get_current_tab_lang(); var name = lang; if (name==""){ name = "def"; } //$( "#target" ).click(); var text = "=block '"+$(this).data('path')+"'"; editors[name].insert(text); }); // click // filter blocks $( ".tab-content" ).on( "keypress", "#panel-blocks-input-path", function( e ) { var key = e.which; if(key == 13){ //$('input[name = butAssignProd]').click(); var v = $(this).val(); load_panel_blocks(v); return false; } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
optimacms-0.2.13 | app/views/optimacms/admin/templates/_js_editor_panel_blocks.html.haml |