mirror of https://github.com/django/django.git
Fixed JavaScript "comma-spacing" violations.
This commit is contained in:
parent
b647d64408
commit
2d6466c295
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"rules": {
|
||||
"camelcase": [1, {"properties": "always"}],
|
||||
"comma-spacing": [1, {"before": false, "after": true}],
|
||||
"comma-spacing": [2, {"before": false, "after": true}],
|
||||
"dot-notation": [1, {"allowKeywords": true}],
|
||||
"curly": [2, "all"],
|
||||
"indent": [
|
||||
|
|
|
@ -166,7 +166,7 @@ var DateTimeShortcuts = {
|
|||
|
||||
// Recalculate the clockbox position
|
||||
// is it left-to-right or right-to-left layout ?
|
||||
if (getStyle(document.body,'direction')!=='rtl') {
|
||||
if (getStyle(document.body, 'direction') !== 'rtl') {
|
||||
clock_box.style.left = findPosX(clock_link) + 17 + 'px';
|
||||
}
|
||||
else {
|
||||
|
@ -304,7 +304,7 @@ var DateTimeShortcuts = {
|
|||
|
||||
// Recalculate the clockbox position
|
||||
// is it left-to-right or right-to-left layout ?
|
||||
if (getStyle(document.body,'direction')!=='rtl') {
|
||||
if (getStyle(document.body, 'direction') !== 'rtl') {
|
||||
cal_box.style.left = findPosX(cal_link) + 17 + 'px';
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -12,7 +12,7 @@ var CalendarNamespace = {
|
|||
isLeapYear: function(year) {
|
||||
return (((year % 4)===0) && ((year % 100)!==0) || ((year % 400)===0));
|
||||
},
|
||||
getDaysInMonth: function(month,year) {
|
||||
getDaysInMonth: function(month, year) {
|
||||
var days;
|
||||
if (month===1 || month===3 || month===5 || month===7 || month===8 || month===10 || month===12) {
|
||||
days = 31;
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
var wktArray = OpenLayers.String.trim(str).split('|');
|
||||
var components = [];
|
||||
for(var i=0, len=wktArray.length; i<len; ++i) {
|
||||
components.push(OpenLayers.Format.WKT.prototype.read.apply(this,[wktArray[i]]));
|
||||
components.push(OpenLayers.Format.WKT.prototype.read.apply(this, [wktArray[i]]));
|
||||
}
|
||||
return components;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue