зеркало из https://github.com/mozilla/pjs.git
cvsquery now helps 3.0 JS avoid 'event has no properties' errors.
This commit is contained in:
Родитель
066a9e29bc
Коммит
4a9e6f4080
|
@ -354,6 +354,7 @@ sub print_top {
|
|||
<HEAD>
|
||||
<TITLE>CVS Blame $title_text</TITLE>
|
||||
<SCRIPT>
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
document.loaded = false;
|
||||
|
||||
function revToName (rev) {
|
||||
|
@ -416,8 +417,6 @@ function dif(prev_rev, rev) {
|
|||
}
|
||||
file_tail = "$file_tail";
|
||||
|
||||
/* Make JavaScript happy in akbar */
|
||||
event = 0;
|
||||
initialLayer = "<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1><TR><TD><B>Page loading...please wait.</B></TD></TR></TABLE>";
|
||||
|
||||
</SCRIPT>
|
||||
|
|
|
@ -337,7 +337,7 @@ sub print_top {
|
|||
<TITLE>CVS Log $title_text</TITLE>
|
||||
<SCRIPT>
|
||||
|
||||
var event = new Object;
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
|
||||
function who_menu(n,extra,d) {
|
||||
if( parseInt(navigator.appVersion) < 4 ){
|
||||
|
|
|
@ -521,6 +521,8 @@ sub setup_script {
|
|||
|
||||
$script_str =<<'ENDJS';
|
||||
<script>
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
|
||||
function js_who_menu(n,extra,d) {
|
||||
if( parseInt(navigator.appVersion) < 4 ){
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче