Sha256: 68d2b366db49be372e7aadc57bbd73970d279221f339daff0bf63501856dbc25

Contents?: true

Size: 841 Bytes

Versions: 1

Compression:

Stored size: 841 Bytes

Contents

#= require ./applicious_class.js.coffee
root = exports ? window

class AppliciousUploader extends AppliciousCore
	@UploadObj: ''


	constructor: ->
		@log 'Applicious [AP::Uploader] Loaded'


	init: (@UploadObj) ->
		@UploadObj.init()
		
		@UploadObj.bind 'FilesAdded', (up, files) =>			
			root.appliciousUploaderFileAdded up, files
			@log 'FilesAdded', up, files

		@UploadObj.bind 'UploadProgress', (up, file) =>
			root.appliciousUploaderUploadProgress up, file
			@log 'UploadProgress', up, file

		@UploadObj.bind 'FileUploaded', (up, file) =>
			root.appliciousUploaderFileUploaded up, file
			@log 'FileUploaded', up, file

		@UploadObj.bind 'Error', (up, error) =>
			root.appliciousUploaderError up, error
			@log 'Error', up, error

		@log 'Initialised [AP::Uploader]', @UploadObj

# - - - #

AP.Uploader = new AppliciousUploader

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
applicious_utils-0.1.64 app/assets/javascripts/applicious_utils/Applicious/uploader_class.js.coffee