Project

General

Profile

Actions

Bug #19985

closed

Some errors in typo3/js-scripts causes some trouble

Added by Steffen Kamper almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-02-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I investigated the scripts in typo3/js with JSlint and found some problems which i solved.

As positive side effect the backendsearch-box now has a visible cursor.

I changed these issues:
  • added missing semicolons
  • used === and !== with compare of integer and string
  • added radix for parseInt
  • changed lines if (condition) return; to
    if (condition) {
    return;
    }
  • changed a = new Array(); to a = [];
  • changed a = new Object(); to a = {};
  • some vars where prefixed with var where they was defined before

(issue imported from #M10377)


Files

10377.diff (8.97 KB) 10377.diff Administrator Admin, 2009-02-07 14:23
10377_v2.diff (39.2 KB) 10377_v2.diff Administrator Admin, 2010-05-29 20:19
Actions #1

Updated by Steffen Kamper over 14 years ago

Committed to trunk rev 7744

Actions

Also available in: Atom PDF