Sha256: 7c7b1c9defc56138bfa0f756068b99bedc4837bf32e3512c1f52d7fc46124510
Contents?: true
Size: 966 Bytes
Versions: 3
Compression:
Stored size: 966 Bytes
Contents
bind_uploaders = -> $('.assetable-uploader').each -> unless $(this).hasClass("uploadable") $(this).addClass "uploadable" $this = $(this) $this.removeClass "assetable-uploader" $this.assetable_uploader multi_selection: false url: "/assetable/assets.js" directions: $this.attr('data-uploader-directions') # max_file_size: $this.attr("data-max-file-size") authenticity_token: $("meta[name=\"csrf-token\"]").attr("content") fileRemoved: (item, button) -> # Remove the asset preview and input when removed. No need # to add an empty input as one already exists in the DOM $('.uploader-preview', item).html('') window.Assetable.bind_uploaders = bind_uploaders $(document).ready -> window.Assetable.bind_uploaders() # Remove assetable modals on close $(document).on "hidden.bs.modal", ".assetable-modal", -> $(this).remove() return
Version data entries
3 entries across 3 versions & 1 rubygems