Sha256: cf890c383bec0d1d3c495baf9320c76a5b2ccf29d9832d6a4cabfa3b0f9a72c9
Contents?: true
Size: 772 Bytes
Versions: 24
Compression:
Stored size: 772 Bytes
Contents
#= require ../backbone/application #= require_self <% url = Rails.application.routes.url_helpers %> $ -> $.getJSON RESOURCE_PATH,(json) -> window.photos_router = new Application.Routers.PhotosRouter(collectionUrl: RESOURCE_PATH, photos: json) Backbone.history.start() $("#uploader").livequery -> $(@).change (el) -> #photos_router.addFromFiles(el.currentTarget.files) files = el.currentTarget.files console.log "Files count: #{files.length}" i = 0 while i < files.length photo = new Application.Models.Photo( image: files[i] name: files[i].name ) ((photo) -> setTimeout -> photos_router.photos.add photo , 1000 )(photo) i++
Version data entries
24 entries across 24 versions & 2 rubygems