Fix inconsistent indenation in CoffeeScript files

We always use two spaces as indentation.
This commit is contained in:
Javi Martín
2019-03-04 13:54:07 +01:00
parent a03c68c1e5
commit 9deed3f39d
4 changed files with 12 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ App.Globalize =
$(".js-globalize-attribute[data-locale=" + locale + "]").each ->
$(this).val('').hide()
if CKEDITOR.instances[$(this).attr('id')]
CKEDITOR.instances[$(this).attr('id')].setData('')
CKEDITOR.instances[$(this).attr('id')].setData('')
$(".js-globalize-locale-link[data-locale=" + locale + "]").hide()
next = $(".js-globalize-locale-link:visible").first()
App.Globalize.highlight_locale(next)

View File

@@ -8,8 +8,8 @@ App.Map =
App.Map.initializeMap map
$('.js-toggle-map').on
click: ->
App.Map.toggleMap()
click: ->
App.Map.toggleMap()
initializeMap: (element) ->
App.Map.cleanInvestmentCoordinates(element)
@@ -29,10 +29,11 @@ App.Map =
editable = $(element).data('marker-editable')
marker = null
markerIcon = L.divIcon(
className: 'map-marker'
iconSize: [30, 30]
iconAnchor: [15, 40]
html: '<div class="map-icon"></div>')
className: 'map-marker'
iconSize: [30, 30]
iconAnchor: [15, 40]
html: '<div class="map-icon"></div>'
)
createMarker = (latitude, longitude) ->
markerLatLng = new (L.LatLng)(latitude, longitude)
@@ -105,8 +106,8 @@ App.Map =
marker.on 'click', openMarkerPopup
toggleMap: ->
$('.map').toggle()
$('.js-location-map-remove-marker').toggle()
$('.map').toggle()
$('.js-location-map-remove-marker').toggle()
cleanInvestmentCoordinates: (element) ->
markers = $(element).attr('data-marker-investments-coordinates')

View File

@@ -1,4 +1,4 @@
App.SendAdminNotificationAlert =
initialize: ->
$('#js-send-admin_notification-alert').on 'click', ->
confirm(this.dataset.alert)
confirm(this.dataset.alert)

View File

@@ -1,4 +1,4 @@
App.SendNewsletterAlert =
initialize: ->
$('#js-send-newsletter-alert').on 'click', ->
confirm(this.dataset.alert)
confirm(this.dataset.alert)