Sha256: 5fad3a47107005510ccdc51f3b7ce02e3cb45a7240c9a0938de99033060c7fcd
Contents?: true
Size: 621 Bytes
Versions: 24
Compression:
Stored size: 621 Bytes
Contents
class Apiv1.FilesFieldComponent extends Ember.TextField with Apiv1.FileDragDropMixin type: "file" multiple: true didInsertElement: -> @bindDragAndDrop() willDestroyElement: -> @unbindDragAndDrop() dragEntered: -> @$().removeClass("drag-left").addClass("drag-entered") dragLeft: -> @$().removeClass("drag-entered").addClass("drag-left") dragDropped: (files)-> @appendFiles files @dragLeft() appendFiles: (files) -> @files = _.union @files, _.map(files, ( (f) -> f ) ) change: (evt) -> @appendFiles evt.target.files hasFiles: -> @files && @files[0]
Version data entries
24 entries across 24 versions & 1 rubygems