 class @MindpinBuckets
-  constructor: (@$path_fix)->
+  constructor: (@$path_fix, @$progress)->
     @_init()
 
   _init: ->

        console.log "buckets success"
        console.log res
        if res['result']
          console.log res.result

  create_bucket: (bucket_type, name, desc) ->
    jQuery.ajax

        console.log res
        if res['result']
          console.log res.result
          @$progress.add_to_bucket_success(res.result)
        else
          @$progress.error(res.error)

  remove_from_bucket: (resource_type, resource_id, bucket_type, bucket_id) ->
    jQuery.ajax
