Sha256: f16d7ec8bb9351c6e6f6da1404cb8986166106bd9c4763c4a4a891b6ddefbb47
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
class Embeditor.Adapters.Ranker extends Embeditor.Adapters.Oembed className: "Ranker" @Endpoint = "http://widget.ranker.com/oembed" swap: -> matcher = /\/(\d+)/ id = matcher.exec(@href)[1] $.ajax url : "#{@adapter.Endpoint}/#{id}" type : 'GET' dataType : 'json' data : _.extend(@queryParams) success: (data, textStatus, jqXHR) => @embedData(data) error: (jqXHR, textStatus, errorThrown) => console.log('[embeditor oembed] error.', jqXHR)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
embeditor-rails-2.2.0 | app/assets/javascripts/embeditor/adapters/ranker.js.coffee |