Sha256: c7e473ad0bda04556c8b3f64cc440826b7ef1e175990dea3cf58749fa700057d

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

init_tooltips = function(){
    arguments = arguments.length > 0 ? arguments : ['a[title]', '#image_grid img[title]'];
	$$(arguments).each(function(element)
	{
		new Tooltip(element, {mouseFollow:false, delay: 0, opacity: 1, appearDuration:0, hideDuration: 0, rounded: false});
	});
};

FastInit.addOnLoad(function()
{
	init_tooltips();
	// focus first field in an admin form.
	try{$(document.forms[0]).getInputs('text').first().focus();}catch(err){}

	$$('a([href*="dialog=true"])').each(function(anchor)
	{
		['modal=true', 'width=928', 'height=473', 'titlebar=true', 'draggable=true'].each(function(feature)
		{
			if (anchor.href.indexOf(feature.split('=')[0] + '=') == -1)
			{
				anchor.href += "&" + feature;
			}
		});
		
		tb_init(anchor);
	});
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 public/javascripts/refinery/admin.js