Exemplo n.º 1
0
		I18N = window.top.I18N;
	}

	function i18n(str)
	{
		if(I18N)
			return (I18N[str] || str);
		else
			return str;
	};

</script>

<script type="text/javascript">
<?php 
if ($editor->isFileSaved() == 1) {
    ?>
	// Reload the images in the imageframe of the Manager :
	// Is there a "imgManager" frame.
	if ((popupWindow = parent.opener.parent) && (imgManager = parent.opener.parent.document.getElementById("imgManager")))
	{
		// refresh it - so it shows the edited image.
		imgManager.src = imgManager.src;
	}
	else
	{
		popupWindow = parent;
	}
	// Reload the images in the editor :
	// base system is the FCKeditor?
	if (popupWindow.opener.FCK)
Exemplo n.º 2
0
<script type="text/javascript">
if(window.top)
	I18N = window.top.I18N;

function i18n(str) {
	if(I18N)
		return (I18N[str] || str);
	else
		return str;
};
	
	var mode = "<? echo $editor->getAction(); ?>" //crop, scale, measure

var currentImageFile = "<? if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>";

<? if ($editor->isFileSaved() == 1) { ?>
	alert(i18n('File saved.'));
<? } else if ($editor->isFileSaved() == -1) { ?>
	alert(i18n('File was not saved.'));
<? } ?>

</script>
<script type="text/javascript" src="assets/editorFrame.js"></script>
</head>

<body>
<div id="status"></div>
<div id="ant" class="selection" style="visibility:hidden"><img src="img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div>
<? if ($editor->isGDEditable() == -1) { ?>
	<div style="text-align:center; padding:10px;"><span class="error">GIF format is not supported, image editing not supported.</span></div>
<? } ?>