Bug #18700 » rtehtmlarea_bugfix_8254.patch
typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php (working copy) | ||
---|---|---|
* Copyright notice
|
||
*
|
||
* (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
|
||
* (c) 2005-2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
|
||
* (c) 2005-2008 Stanislas Rolland <typo3(arobas)sjbr.ca>
|
||
* All rights reserved
|
||
*
|
||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||
... | ... | |
* TYPO3 SVN ID: $Id$
|
||
*
|
||
* @author Kasper Skaarhoj <kasperYYYY@typo3.com>
|
||
* @author Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
|
||
* @author Stanislas Rolland <typo3(arobas)sjbr.ca>
|
||
*/
|
||
require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
|
||
... | ... | |
return false;
|
||
}
|
||
}
|
||
function insertElement(table, uid, type, filename,fp,filetype,imagefile,action, close) { //
|
||
if (1=='.($pArr[0]&&!$pArr[1]&&!$pArr[2] ? 1 : 0).') {
|
||
addElement(filename,table+"_"+uid,fp,close);
|
||
} else {
|
||
if (setReferences()) {
|
||
parent.window.opener.group_change("add","'.$pArr[0].'","'.$pArr[1].'","'.$pArr[2].'",elRef,targetDoc);
|
||
} else {
|
||
alert("Error - reference to main window is not set properly!");
|
||
}
|
||
if (close) {
|
||
parent.window.opener.focus();
|
||
parent.close();
|
||
}
|
||
}
|
||
function insertElement(table, uid, type, filename, fp, filetype, imagefile, action, close) { //
|
||
link_folder(fp.substring('.strlen(PATH_site).'));
|
||
return false;
|
||
}
|
||
function insertElement(table, uid, type, filename,fp,filetype,imagefile,action, close) { //
|
||
link_folder(filename);
|
||
return false;
|
||
}
|
||
function addElement(elName,elValue,altElValue,close) { //
|
||
if (parent.window.opener && parent.window.opener.setFormValueFromBrowseWin) {
|
||
parent.window.opener.setFormValueFromBrowseWin("'.$pArr[0].'",altElValue?altElValue:elValue,elName);
|
- « Previous
- 1
- 2
- Next »