Sha256: 017798a6447b30d3987a51c19519d3d960ae05792cfd3ca5df7ee24d6baebb62

Contents?: true

Size: 1.64 KB

Versions: 36

Compression:

Stored size: 1.64 KB

Contents

{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

Version data entries

36 entries across 18 versions & 1 rubygems

Version Path
optimacms-0.1.36 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.36 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.34 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.34 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.32 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.32 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.31 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.31 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.28 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.28 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.27 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.27 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.25 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.25 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.24 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.24 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.23 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.23 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36
optimacms-0.1.21 test/dummy/tmp/cache/assets/development/sprockets/6d1bdef223aa287c63a5e337c29f92d0
optimacms-0.1.21 test/dummy/tmp/cache/assets/development/sprockets/e94a588bcbf5b3effc69d4d93d03dd36