version 1.327, 2012/10/08 10:47:34
|
version 1.329, 2012/11/03 23:32:37
|
Line 2925 PARAMSONE
|
Line 2925 PARAMSONE
|
if (itemid.offsetWidth != itemwstart) { |
if (itemid.offsetWidth != itemwstart) { |
listwchange = 1; |
listwchange = 1; |
} |
} |
THIRD |
|
if ($context eq 'docs') { |
|
$output .= <<"DOCSTWO"; |
|
if (activeTab == 'cc1') { |
|
if (document.getElementById('cc_hrule') != null) { |
|
document.getElementById('cc_hrule').style.width=actabw+"px"; |
|
} |
|
} else { |
|
if (activeTab == 'bb1') { |
|
if (document.getElementById('bb_hrule') != null) { |
|
document.getElementById('bb_hrule').style.width=actabw+"px"; |
|
} |
|
} else { |
|
if (activeTab == 'ee2') { |
|
if (document.getElementById('ee_hrule') != null) { |
|
document.getElementById('ee_hrule').style.width=actabw+"px"; |
|
} |
|
} |
|
} |
|
} |
|
DOCSTWO |
|
} |
|
$output .= <<"FOURTH"; |
|
} |
} |
if ((chkh == 1) || (listwchange)) { |
if ((chkh == 1) || (listwchange)) { |
var primaryheight = document.getElementById('LC_nav_bar').offsetHeight; |
var primaryheight = document.getElementById('LC_nav_bar').offsetHeight; |
Line 3007 function callResize() {
|
Line 2984 function callResize() {
|
timer=setTimeout('resize_scrollbox("$names{'scroll'}","1","1")',500); |
timer=setTimeout('resize_scrollbox("$names{'scroll'}","1","1")',500); |
} |
} |
|
|
FOURTH |
THIRD |
return $output; |
return $output; |
} |
} |
|
|
|
############################################## |
|
############################################## |
|
|
|
sub javascript_jumpto_resource { |
|
my $confirm_switch = &mt("Editing requires switching to the resource's home server.").'\n'. |
|
&mt('Switch server?'); |
|
return (<<ENDUTILITY) |
|
|
|
function go(url) { |
|
if (url!='' && url!= null) { |
|
currentURL = null; |
|
currentSymb= null; |
|
window.location.href=url; |
|
} |
|
} |
|
|
|
function need_switchserver(url) { |
|
if (url!='' && url!= null) { |
|
if (confirm("$confirm_switch")) { |
|
go(url); |
|
} |
|
} |
|
return; |
|
} |
|
|
|
ENDUTILITY |
|
|
|
} |
|
|
|
sub jump_to_editres { |
|
my ($cfile,$home,$switchserver,$uploaded,$symb) = @_; |
|
my $jscall; |
|
if ($switchserver) { |
|
if ($symb && $home) { |
|
$cfile = '/adm/switchserver?otherserver='.$home.'&role='. |
|
&HTML::Entities::encode($env{'request.role'},'"<>&').'&'. |
|
'symb='.&HTML::Entities::encode($env{'request.symb'},'"<>&'); |
|
if ($uploaded) { |
|
$cfile .= '&forceedit=1'; |
|
} |
|
$jscall = "need_switchserver('$cfile');"; |
|
} |
|
} else { |
|
if ($uploaded) { |
|
$cfile .= '?forceedit=1'; |
|
} |
|
$jscall = "go('$cfile')"; |
|
} |
|
return $jscall; |
|
} |
|
|
############################################## |
############################################## |
############################################## |
############################################## |