Sha256: 21d01d1c0a41e4d26afb974b20bf4502dec355a4fbefaf928d1f173e2bb88aaa
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
#= require ../backbone/application #= require_self <% url = Rails.application.routes.url_helpers %> $ -> $.getJSON RESOURCE_PATH,(json) -> new Application.Routers.PhotosRouter(collectionUrl: RESOURCE_PATH, photos: json) Backbone.history.start() $("#uploader").change (el) -> files = el.currentTarget.files i = 0 while i < files.length photo = new Application.Models.Photo( image: files[i] name: files[i].name ) photo.url = fileList.url fileList.add photo setTimeout (-> fileList.add photo ), 1000 i++ fileListView.render()
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mix-rails-0.15.0 | mix-rails-albums/app/assets/javascripts/photos/upload.js.coffee.erb |
mix-rails-albums-0.15.0 | app/assets/javascripts/photos/upload.js.coffee.erb |