Sha256: 69d6c8c34b79b46bae798d9d1b0debd0c4b35e46bb9bfb1a0f05652d59a7b187

Contents?: true

Size: 1.2 KB

Versions: 23

Compression:

Stored size: 1.2 KB

Contents

<div id="modal_elfinder" style="font-size: 14px">
  <div id='content_elfinder'></div>
</div>
<%= stylesheet_link_tag "admin/elfinder-manifest"   , media: "all" %>
<%= javascript_include_tag "admin/elfinder-manifest" %>
<%= javascript_include_tag "admin/elfinder/i18n/elfinder.#{current_locale}.js" if current_locale != "en" %>
<style>
  #content_elfinder .elfinder-cwd *{
      font-size: 11px;
  }
  #content_elfinder .row{
      margin: 0;
  }
</style>
<script>
    var options = <%= raw params.except(:controller, :action).to_json %>;
    var root_url = '<%= root_url %>';
    String.prototype.to_url = function () { return root_url.slice(0, root_url.length - 1) + this; };
    jQuery(function(){
        if(window.parent.onload_modal_elfinder) window.parent.onload_modal_elfinder();
        var default_options = {type:"all", multiple: 'false', mode: 'basic'};
        options = $.extend(default_options, options);
        options.multiple = options.multiple == 'true';
        options.selected = function(s){
            if(window.parent.callback_modal_elfinder){
                window.parent.callback_modal_elfinder(s);
            }
        }
        $('#content_elfinder').upload_elfinder(options)


    })
</script>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.9 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.8 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.7 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.6 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.5 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.4 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.3 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.2 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0.1 app/views/admin/media/iframe.html.erb
camaleon_cms-1.0 app/views/admin/media/iframe.html.erb
camaleon_cms-0.2.1 app/views/admin/media/iframe.html.erb
camaleon_cms-0.2.0 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.9 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.8 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.7 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.6 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.5 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.4 app/views/admin/media/iframe.html.erb
camaleon_cms-0.1.3 app/views/admin/media/iframe.html.erb