]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_edit_menu.html.erb
Allow iD and Potlatch 2 to load assets outside the asset pipeline
[rails.git] / app / views / layouts / _edit_menu.html.erb
index 23763736b59b77d771ad57981293701df438e829..b7d9d7fdfef53509e4ae404ff727c3587f8e424a 100644 (file)
@@ -1,11 +1,12 @@
 <div class="dropdown edit_menu">
   <%= link_to link_text, edit_path,
               :id => 'editanchor',
 <div class="dropdown edit_menu">
   <%= link_to link_text, edit_path,
               :id => 'editanchor',
+              :data => { :editor => preferred_editor },
               :class => "geolink tab #{link_class}" %>
   <a class='dropdown-toggle' data-toggle='dropdown' href='#'>
     <b class="caret"></b>
   </a>
               :class => "geolink tab #{link_class}" %>
   <a class='dropdown-toggle' data-toggle='dropdown' href='#'>
     <b class="caret"></b>
   </a>
-  <ul class='dropdown-menu' role='menu' aria-labelledby='dLabel'>
+  <ul class='dropdown-menu'>
     <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
       <li>
         <%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
     <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
       <li>
         <%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),