1. ADMINA PANELIS
2. Customize design - File Catalog - Page with full entry text and associated comments
3. Atrodam $MODER_PANEL$, kuru varam aizvietot vai pievienot blakus skriptu:
Code
<script type="text/javascript">
createopis = function () {
var f = document.createElement('iframe');//
f.src = '/load/0-0-0-$ID$-13';
f.style.border = 0;
f.style.width = 0;
f.style.height = 0;
f.id = 'editFr';
f.onload = getValFramea;
document.body.appendChild(f);
}
getValFramea = function () {
var valu = document.getElementById('editFr').contentWindow.document.getElementById('brief').value;
new _uWnd('frmVal', 'Apraksts ', 300, 200, {oncontent:function(){document.getElementById('frmNowVal').value = valu;}},'<fieldset><legend>Faila apraksts </legend><div align="left"><textarea width:="" 100%;="" rows="8" id="frmNowVal" cols="55"></textarea></div><div align="left"><input type="button" value="Labot aprakstu" onclick="changeVala()"></div></fieldset>');
}
changeVala = function () {
var val = document.getElementById('frmNowVal').value;
document.getElementById('editFr').contentWindow.document.getElementById('brief').value = val;
document.getElementById('editFr').contentWindow.document.getElementById('addEntForm').submit();
_uWnd.close('frmVal');
}
</script>
<a href="javascript:createopis()">Labot aprakstu</a>
4. Iznākums: