Bug #15126 » frame_reload.diff
TYPO3core/t3lib/class.t3lib_foldertree.php 2005-12-12 22:25:29.000000000 +0100 | ||
---|---|---|
if (!$this->ext_IconMode) {
|
||
$theFolderIcon = $GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon($theFolderIcon,$row['path'],'',0);
|
||
} elseif (!strcmp($this->ext_IconMode,'titlelink')) {
|
||
$aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'_'.$this->bank.'\');';
|
||
$aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$this->bank.');';
|
||
$theFolderIcon='<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.$theFolderIcon.'</a>';
|
||
}
|
||
return $theFolderIcon;
|
||
... | ... | |
* @access private
|
||
*/
|
||
function wrapTitle($title,$row,$bank=0) {
|
||
$aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'_'.$bank.'\');';
|
||
$aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$bank.');';
|
||
$CSM = '';
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['BE']['useOnContextMenuHandler']) {
|
||
$CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('',$row['path'],'',0,'','',TRUE)).'"';
|
||
... | ... | |
* @param array Record array
|
||
* @return integer The "uid" field value.
|
||
*/
|
||
function getId($v) {
|
||
function getId($v) {
|
||
return t3lib_div::md5Int($v['path']);
|
||
}
|
||
TYPO3core/typo3/alt_db_navframe.php 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
* @access private
|
||
*/
|
||
function wrapTitle($title,$row,$bank=0) {
|
||
$aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'_'.$bank.'\');';
|
||
$aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$bank.');';
|
||
$CSM = '';
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['BE']['useOnContextMenuHandler']) {
|
||
$CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('','pages',$row['uid'],0,'&bank='.$this->bank,'',TRUE)).'"';
|
||
... | ... | |
($this->currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($this->currentSubScript).'");':'').'
|
||
// Function, loading the list frame from navigation tree:
|
||
function jumpTo(id,linkObj,highLightID) { //
|
||
function jumpTo(id,linkObj,highLightID,bank) { //
|
||
var theUrl = top.TS.PATH_typo3+top.currentSubScript+"?id="+id;
|
||
top.fsMod.currentBank = bank;
|
||
if (top.condensedMode) {
|
||
top.content.document.location=theUrl;
|
||
... | ... | |
parent.list_frame.document.location=theUrl;
|
||
}
|
||
'.($this->doHighlight?'hilight_row("web",highLightID);':'').'
|
||
'.($this->doHighlight?'hilight_row("web",highLightID+"_"+bank);':'').'
|
||
'.(!$GLOBALS['CLIENT']['FORMSTYLE'] ? '' : 'if (linkObj) {linkObj.blur();}').'
|
||
return false;
|
TYPO3core/typo3/alt_file_navframe.php 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
($this->currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($this->currentSubScript).'");':'').'
|
||
// Function, loading the list frame from navigation tree:
|
||
function jumpTo(id,linkObj,highLightID) { //
|
||
function jumpTo(id,linkObj,highLightID,bank) { //
|
||
var theUrl = top.TS.PATH_typo3+top.currentSubScript+"?id="+id;
|
||
top.fsMod.currentBank = bank;
|
||
if (top.condensedMode) {
|
||
top.content.document.location=theUrl;
|
||
... | ... | |
parent.list_frame.document.location=theUrl;
|
||
}
|
||
'.($this->doHighlight?'hilight_row("file",highLightID);':'').'
|
||
'.($this->doHighlight?'hilight_row("file",highLightID+"_"+bank);':'').'
|
||
'.(!$CLIENT['FORMSTYLE'] ? '' : 'if (linkObj) {linkObj.blur();}').'
|
||
return false;
|
||
}
|
TYPO3core/typo3/alt_main.php 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
this.recentIds=new Array(); // used by frameset modules to track the most recent used id for list frame.
|
||
this.navFrameHighlightedID=new Array(); // used by navigation frames to track which row id was highlighted last time
|
||
this.currentMainLoaded="";
|
||
this.currentBank="0";
|
||
}
|
||
var fsMod = new fsModules();
|
||
'.$fsMod.'
|
TYPO3core/typo3/class.db_list_extra.inc 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
// Setting title of page + the "Go up" link:
|
||
$theData[$titleCol].='<br /><span title="'.htmlspecialchars($row['_thePathFull']).'">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($row['_thePath'],-$this->fixedL)).'</span>';
|
||
$theData['up'][]='<a href="'.htmlspecialchars($this->listURL($row['pid'])).'">'.
|
||
$theData['up'][]='<a href="'.htmlspecialchars($this->listURL($row['pid'])).'" onclick="setHighlight('.$row['pid'].')">'.
|
||
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/i/pages_up.gif','width="18" height="16"').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel',1).'" alt="" />'.
|
||
'</a>';
|
||
... | ... | |
}
|
||
}
|
||
} else {
|
||
$theUpIcon = ($table=='pages'&&$this->id&&isset($this->pageRow['pid'])) ? '<a href="'.htmlspecialchars($this->listURL($this->pageRow['pid'])).'"><img'.t3lib_iconWorks::skinImg('','gfx/i/pages_up.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel',1).'" alt="" /></a>':'';
|
||
$theUpIcon = ($table=='pages'&&$this->id&&isset($this->pageRow['pid'])) ? '<a href="'.htmlspecialchars($this->listURL($this->pageRow['pid'])).'" onclick="setHighlight('.$this->pageRow['pid'].')"><img'.t3lib_iconWorks::skinImg('','gfx/i/pages_up.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.upOneLevel',1).'" alt="" /></a>':'';
|
||
$out.=$this->addelement(1,$theUpIcon,$theData,' class="c-headLineTable"','');
|
||
}
|
||
TYPO3core/typo3/class.db_list.inc 2005-12-12 22:26:57.000000000 +0100 | ||
---|---|---|
default:
|
||
// Output the label now:
|
||
if ($table=='pages') {
|
||
$code = '<a href="'.htmlspecialchars($this->listURL($uid,'')).'">'.$code.'</a>';
|
||
$code = '<a href="'.htmlspecialchars($this->listURL($uid,'')).'" onclick="setHighlight('.$uid.')">'.$code.'</a>';
|
||
} else {
|
||
$code = $this->linkUrlMail($code,$origCode);
|
||
}
|
TYPO3core/typo3/class.file_list.inc 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
// Directories are added
|
||
$iOut = '';
|
||
$iOut.= $this->formatDirList($dirs,$titleCol);
|
||
$iOut.= $this->formatDirList($dirs);
|
||
if (count($dirs['sorting'])) {
|
||
// half line is drawn
|
||
... | ... | |
*/
|
||
function linkWrapDir($code,$path) {
|
||
$href = $this->script.'?id='.rawurlencode($path);
|
||
$onclick = ' onclick="'.htmlspecialchars('top.content.nav_frame.hilight_row("file","folder'.t3lib_div::md5int($path).'_"+top.fsMod.currentBank)').'"';
|
||
// Sometimes $code contains plain HTML tags. In such a case the string should not be modified!
|
||
if(!strcmp($code,strip_tags($code))) {
|
||
return '<a href="'.htmlspecialchars($href).'" title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.' title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
} else {
|
||
return '<a href="'.htmlspecialchars($href).'">'.$code.'</a>';
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.'>'.$code.'</a>';
|
||
}
|
||
}
|
||
TYPO3core/typo3/db_list.php 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
document.location = URL+(T3_RETURN_URL?"&returnUrl="+T3_RETURN_URL:"");
|
||
return false;
|
||
}
|
||
function setHighlight(id) {
|
||
top.fsMod.recentIds["web"]=id;
|
||
top.fsMod.navFrameHighlightedID["web"]="pages"+id+"_"+top.fsMod.currentBank; // For highlighting
|
||
if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) {
|
||
top.content.nav_frame.refresh_nav();
|
||
}
|
||
}
|
||
'.$this->doc->redirectUrls($dblist->listURL()).'
|
||
'.$dblist->CBfunctions().'
|
||
function editRecords(table,idList,addParams,CBflag) { //
|
TYPO3core/typo3/file_list.php 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
}
|
||
}
|
||
if (!isset($this->MOD_SETTINGS['sort'])) {
|
||
// Set default sorting
|
||
$this->MOD_SETTINGS['sort'] = 'file';
|
||
$this->MOD_SETTINGS['reverse'] = 0;
|
||
}
|
||
// Start up filelisting object, include settings.
|
||
$this->pointer = t3lib_div::intInRange($this->pointer,0,100000);
|
||
$filelist->start($this->id,$this->pointer,$this->MOD_SETTINGS['sort'],$this->MOD_SETTINGS['reverse'],$this->MOD_SETTINGS['clipBoard']);
|
TYPO3core/typo3/sysext/cms/layout/db_layout.php 2005-12-12 22:25:30.000000000 +0100 | ||
---|---|---|
$this->doc->JScode = '<script type="text/javascript" src="'.$BACK_PATH.'t3lib/jsfunc.updateform.js"></script>';
|
||
$this->doc->JScode.= $this->doc->wrapScriptTags('
|
||
if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).';
|
||
if (top.fsMod) top.fsMod.navFrameHighlightedID["web"] = "pages'.intval($this->id).'_"+top.fsMod.currentBank; '.intval($this->id).';
|
||
function jumpToUrl(URL,formEl) { //
|
||
if (document.editform && document.TBE_EDITOR_isFormChanged) { // Check if the function exists... (works in all browsers?)
|
||
if (!TBE_EDITOR_isFormChanged()) { //
|