diff --git a/app/assets/javascripts/globalize.js.coffee b/app/assets/javascripts/globalize.js.coffee index 00bdf1768..5dc30432f 100644 --- a/app/assets/javascripts/globalize.js.coffee +++ b/app/assets/javascripts/globalize.js.coffee @@ -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) diff --git a/app/assets/javascripts/map.js.coffee b/app/assets/javascripts/map.js.coffee index 05b65fef8..1eabfa132 100644 --- a/app/assets/javascripts/map.js.coffee +++ b/app/assets/javascripts/map.js.coffee @@ -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: '
') + className: 'map-marker' + iconSize: [30, 30] + iconAnchor: [15, 40] + html: '' + ) 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') diff --git a/app/assets/javascripts/send_admin_notification_alert.js.coffee b/app/assets/javascripts/send_admin_notification_alert.js.coffee index 59e6a1f09..d21e218d3 100644 --- a/app/assets/javascripts/send_admin_notification_alert.js.coffee +++ b/app/assets/javascripts/send_admin_notification_alert.js.coffee @@ -1,4 +1,4 @@ App.SendAdminNotificationAlert = initialize: -> $('#js-send-admin_notification-alert').on 'click', -> - confirm(this.dataset.alert) + confirm(this.dataset.alert) diff --git a/app/assets/javascripts/send_newsletter_alert.js.coffee b/app/assets/javascripts/send_newsletter_alert.js.coffee index f108d38e8..e543140f1 100644 --- a/app/assets/javascripts/send_newsletter_alert.js.coffee +++ b/app/assets/javascripts/send_newsletter_alert.js.coffee @@ -1,4 +1,4 @@ App.SendNewsletterAlert = initialize: -> $('#js-send-newsletter-alert').on 'click', -> - confirm(this.dataset.alert) + confirm(this.dataset.alert)