]> git.openstreetmap.org Git - rails.git/commitdiff
divide embed section from share section.
authorSaman Bemel-Benrud <samanpwbb@gmail.com>
Tue, 30 Jul 2013 16:58:47 +0000 (12:58 -0400)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 5 Aug 2013 15:31:46 +0000 (08:31 -0700)
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')));
 
         $('<h4>')
           .text(I18n.t('javascripts.share.title')));
 
-    // Link / Embed
+    // Link
 
     var $linkSection = $('<div>')
       .attr('class', 'section share-link')
 
     var $linkSection = $('<div>')
       .attr('class', 'section share-link')
@@ -105,6 +105,16 @@ L.OSM.share = function (options) {
         .attr('type', 'text')
         .on('click', select));
 
         .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)
     $('<div>')
       .attr('class', 'form-row')
       .appendTo($form)