<?php
/*
 * Copyright (c) 2013, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */

$base = sly_Util_AddOn::assetBaseUri('webvariants/developer-utils');

?>
<script type="text/javascript">
jQuery(function($) {
	var img = $('<img>')
		.attr('src', '<?php print $base ?>images/help.png')
		.attr('alt', '')
		.css({float: 'right', margin: '2px 7px 0 0', cursor: 'help'})
		.addClass('devutils-tooltip');

	$('.sly-slice-form legend:first').append(img);

	img.tooltip({
		track:   false,
		delay:   0,
		showURL: false,
		fade:    150,
		bodyHandler: function() {
			return <?php print json_encode($desc) ?>;
		}
	});
});
</script>
