Fix inconsistent indenation in CoffeeScript files
We always use two spaces as indentation.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
App.SendAdminNotificationAlert =
|
||||
initialize: ->
|
||||
$('#js-send-admin_notification-alert').on 'click', ->
|
||||
confirm(this.dataset.alert)
|
||||
confirm(this.dataset.alert)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
App.SendNewsletterAlert =
|
||||
initialize: ->
|
||||
$('#js-send-newsletter-alert').on 'click', ->
|
||||
confirm(this.dataset.alert)
|
||||
confirm(this.dataset.alert)
|
||||
|
||||
Reference in New Issue
Block a user