{:uriI"file:///Users/adam/.rvm/gems/ruby-2.0.0-p598/gems/comfortable_mexican_sofa-1.12.8/app/assets/javascripts/comfy/admin/cms/lib/redactor/definedlinks.js?type=application/javascript&pipeline=self&id=d9c7d7c5772cfd58c00c4bfe713370c5033565e255451eddb5d68eee4936584a:ET:load_pathI"f/Users/adam/.rvm/gems/ruby-2.0.0-p598/gems/comfortable_mexican_sofa-1.12.8/app/assets/javascripts;T:
filenameI"/Users/adam/.rvm/gems/ruby-2.0.0-p598/gems/comfortable_mexican_sofa-1.12.8/app/assets/javascripts/comfy/admin/cms/lib/redactor/definedlinks.js;T: nameI".comfy/admin/cms/lib/redactor/definedlinks;T:logical_pathI"6comfy/admin/cms/lib/redactor/definedlinks.self.js;T:content_typeI"application/javascript;T:sourceI"if (!RedactorPlugins) var RedactorPlugins = {};
(function($)
{
RedactorPlugins.definedlinks = function()
{
return {
init: function()
{
if (!this.opts.definedLinks) return;
this.modal.addCallback('link', $.proxy(this.definedlinks.load, this));
},
load: function()
{
var $select = $('');
$('#redactor-modal-link-insert').prepend($select);
this.definedlinks.storage = {};
$.getJSON(this.opts.definedLinks, $.proxy(function(data)
{
$.each(data, $.proxy(function(key, val)
{
this.definedlinks.storage[key] = val;
$select.append($('