]> git.openstreetmap.org Git - rails.git/commitdiff
Add data-editor to the main edit tab
authorTom Hughes <tom@compton.nu>
Mon, 9 Sep 2013 11:53:22 +0000 (12:53 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 9 Sep 2013 11:53:22 +0000 (12:53 +0100)
This ensures that the if the user's default editor is remote edit
then it will be triggered without a page reload.

app/views/layouts/_edit_menu.html.erb

index 78c5dbb65c50d1195a88869067245550f203943e..b7d9d7fdfef53509e4ae404ff727c3587f8e424a 100644 (file)
@@ -1,6 +1,7 @@
 <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>