Sha256: d0e29f4e569a035e0d2d6e710b955d03acf906d58a613da53d1fef2799e7acb1
Contents?: true
Size: 754 Bytes
Versions: 16
Compression:
Stored size: 754 Bytes
Contents
Dashboard.FormDataAdapter = Dashboard.ApplicationAdapter.extend ajaxOptions: (url, type, hash) -> hash = hash || {} hash.url = url hash.type = type hash.dataType = 'json' hash.context = @ if hash.data and type != 'GET' and type != 'DELETE' hash.processData = false hash.contentType = false fd = new FormData() root = Object.keys(hash.data)[0] for key in Object.keys(hash.data[root]) if hash.data[root][key] fd.append("#{root}[#{key}]", hash.data[root][key]) hash.data = fd headers = Ember.get(@, 'headers') if headers != undefined hash.beforeSend = (xhr) -> for key in Ember.keys(headers) xhr.setRequestHeader(key, headers[key]) hash
Version data entries
16 entries across 16 versions & 1 rubygems