?>
'}}) + '"  \
					src="'+imageSrc+'" style="'+_imgStyle+'">';

				//pLEditor.InsertHTML(_str);
				top.doInsert('[File:<?php 
            echo CUTIL::JSEscape($arResult['IMAGE']['ORIGINAL_NAME']);
            ?>
]','',false,"<?php 
            echo $arResult['IMAGE']['ID'];
            ?>
");
			}
			else {
				top.doInsert('[File:<?php 
            echo CUTIL::JSEscape($arResult['IMAGE']['ORIGINAL_NAME']);
            ?>
]','',false);
			}

			top.BX.closeWait();
			top.BX.WindowManager.Get().Close();
			<?php 
        } else {
            ?>
			top.BX.WindowManager.Get().ShowError('<?php 
            echo CUtil::JSEscape($arResult['ERROR_MESSAGE']);
            ?>
');
		<?php 
        }
Beispiel #2
0
			BX('WIKI_HISTORY_check_all').style.visibility = 'hidden';
			document.forms['form_WIKI_HISTORY'].action = '<?php 
        echo $arResult['PATH_TO_HISTORY_DIFF'];
        ?>
';
			var inp = document.forms['form_WIKI_HISTORY'].elements;
			for(var i = 0; i < inp.length; i++)
			{
				if (inp[i].type == 'submit' && inp[i].name == 'apply')
					inp[i].style.visibility = 'hidden';

				if (inp[i].type == 'checkbox' && inp[i].id.indexOf('ID_') == 0)
				{
					inp[i].title = '<?php 
        echo CUTIL::JSEscape(GetMessage('WIKI_SELECT_DIFF'));
        ?>
';
					BX.bind(inp[i], 'click', function() {
						var j = 0;
						var inp = document.forms['form_WIKI_HISTORY'].elements;
						for(var i = 0; i < inp.length; i++)
						{
							if (inp[i].type == 'checkbox' && inp[i].id.indexOf('ID_') == 0 && inp[i].checked)
								j++;
						}

						if ((j >= 2 && this.checked) || !this.checked)
						{
							for(var i = 0; i < inp.length; i++)
							{