]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/1045'
authorTom Hughes <tom@compton.nu>
Thu, 27 Aug 2015 20:21:45 +0000 (21:21 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 27 Aug 2015 20:21:45 +0000 (21:21 +0100)
app/assets/javascripts/leaflet.layers.js
app/controllers/user_controller.rb

index d2928068d4d6a1ec1a754e0a081f75b90f4cf356..9f2e50a6f4afaa928cb6c1611b24843708cabd09 100644 (file)
@@ -101,6 +101,8 @@ L.OSM.layers = function(options) {
         map.fire('baselayerchange', {layer: layer});
       });
 
+      item.on('dblclick', toggle);
+
       map.on('layeradd layerremove', function() {
         item.toggleClass('active', map.hasLayer(layer));
         input.prop('checked', map.hasLayer(layer));
index 0f77c87a0966dcf4dab318bbc8cabb6f64e5eb97..37f9cd7c204d0c73a8a24ac97d23e60f8267792c 100644 (file)
@@ -45,7 +45,7 @@ class UserController < ApplicationController
         @user.terms_seen = true
 
         if @user.save
-          flash[:notice] = t "user.new.terms declined", :url => t("user.new.terms declined url")
+          flash[:notice] = t("user.new.terms declined", :url => t("user.new.terms declined url")).html_safe
         end
 
         if params[:referer]
@@ -330,7 +330,7 @@ class UserController < ApplicationController
       flash[:error] = t "user.confirm_resend.failure", :name => params[:display_name]
     else
       Notifier.signup_confirm(user, user.tokens.create).deliver_now
-      flash[:notice] = t "user.confirm_resend.success", :email => user.email
+      flash[:notice] = t("user.confirm_resend.success", :email => user.email).html_safe
     end
 
     redirect_to :action => "login"