Sha256: d45a71a98df3dd0dae08394a2e93d7aacd6ae1a8c29545ba25cdc7753dcb2036

Contents?: true

Size: 1.87 KB

Versions: 20

Compression:

Stored size: 1.87 KB

Contents

<script type="text/javascript">


    var myUploader = fluid.progressiveEnhanceableUploader(".flc-uploader", ".fl-progEnhance-basic", {
                  uploadManager: {
                 type: "fluid.swfUploadManager",
      
                 options: {
                    // Set the uploadURL to the URL for posting files to your server.
                    uploadURL: "<%= generic_content_object_path(:container_id => params[:id], :only_path => false) %>",
      
                    // This option points to the location of the SWFUpload Flash object that ships with Fluid Infusion.
                    flashURL: "<%= image_path("../infusion/lib/swfupload/flash/swfupload.swf", :plugin=>"fluid-infusion") %>"
               }
             },
      
      listeners: {
                  onFileSuccess: function (file, serverData){
                  },
      
                  afterUploadComplete: function () {
                      // first check to see if the file queue is empty and there haven't been any errors
                      if (myUploader.uploadManager.queue.getReadyFiles().length === 0 && myUploader.uploadManager.queue.getErroredFiles().length === 0) {
                          //async_load('<%= "/generic_content_objects/#{params[:container_id]}/content"%>', '#uploads'); 
                         $("#file_assets  .editable-container").hydraTextField();
                      }
                  }
              },
      
                  decorators: {
                      type: "fluid.swfUploadSetupDecorator",
                      options: {
                          // This option points to the location of the Browse Files button used with Flash 10 clients.
                          flashButtonImageURL: "<%= image_path("../infusion/components/uploader/images/browse.png", :plugin=>"fluid-infusion") %>"
                      }
                  }
              });
</script>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
hydra-head-3.1.4 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.3 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.2 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.1 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.rc2 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.rc1 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.pre5 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.pre4 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.pre3 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.1 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.pre2 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.1.0.pre1 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0.rc2 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0.rc1 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0pre4 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0pre3 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0pre2 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb
hydra-head-3.0.0pre1 app/views/fluid_infusion/_uploader_generic_content_objects.js.erb