]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.share.js
divide embed section from share section.
[rails.git] / app / assets / javascripts / leaflet.share.js
index aef60d1cd9b735d942daf951689222cf68800764..4454f02bbddd917b7bff598f600ad793398e818d 100644 (file)
@@ -34,7 +34,7 @@ L.OSM.share = function (options) {
         $('<h4>')
           .text(I18n.t('javascripts.share.title')));
 
-    // Link / Embed
+    // Link
 
     var $linkSection = $('<div>')
       .attr('class', 'section share-link')
@@ -105,6 +105,16 @@ L.OSM.share = function (options) {
         .attr('type', 'text')
         .on('click', select));
 
+    // Embed
+
+    var $embedSection = $('<div>')
+      .attr('class', 'section share-embed')
+      .appendTo($ui);
+
+    var $form = $('<form>')
+      .attr('class', 'standard-form')
+      .appendTo($embedSection);
+
     $('<div>')
       .attr('class', 'form-row')
       .appendTo($form)