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 -> $(".js-globalize-attribute[data-locale=" + locale + "]").each ->
$(this).val('').hide() $(this).val('').hide()
if CKEDITOR.instances[$(this).attr('id')] 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() $(".js-globalize-locale-link[data-locale=" + locale + "]").hide()
next = $(".js-globalize-locale-link:visible").first() next = $(".js-globalize-locale-link:visible").first()
App.Globalize.highlight_locale(next) App.Globalize.highlight_locale(next)

View File

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

View File

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

View File

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