{I" class:ETI"BundledAsset;FI"logical_path;TI"rich/editor/rich_picker.js;TI" pathname;TI"eD:/Ruby215/lib/ruby/gems/2.1.0/gems/rich-1.4.6/app/assets/javascripts/rich/editor/rich_picker.js;TI"content_type;TI"application/javascript;TI" mtime;Tl+ÎÔçTI" length;Ti¬I" digest;TI"%61097354f24ba308b857008f79318049;FI" source;TI"¬// Direct asset picker var rich = rich || {}; rich.AssetPicker = function(){ }; rich.AssetPicker.prototype = { showFinder: function(dom_id, options){ // open a popup var params = {}; params.CKEditor = 'picker'; // this is not CKEditor params.default_style = options.default_style; params.allowed_styles = options.allowed_styles; params.insert_many = options.insert_many; params.type = options.type || "image"; params.viewMode = options.view_mode || "grid"; params.scoped = options.scoped || false; if(params.scoped == true) { params.scope_type = options.scope_type params.scope_id = options.scope_id; } params.dom_id = dom_id; var url = addQueryString(options.richBrowserUrl, params ); window.open(url, 'filebrowser', "width=860,height=500") }, setAsset: function(dom_id, asset, id, type){ var split_field_name = $(dom_id).attr('id').split('_') if (split_field_name[split_field_name.length - 1] == "id") { $(dom_id).val(id); } else { $(dom_id).val(asset); } if(type=='image') { $(dom_id).siblings('img.rich-image-preview').first().attr({src: asset}); } } }; // Rich Asset input var assetPicker = new rich.AssetPicker(); ;TI"required_assets_digest;TI"%9f615816f88942ddc8bd8ce1d66efbf8;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F