From c47b417f3ea4eda8fdfb190e109cb46136e2f345 Mon Sep 17 00:00:00 2001 From: Saman Bemel-Benrud Date: Tue, 30 Jul 2013 12:58:47 -0400 Subject: [PATCH 1/1] divide embed section from share section. --- app/assets/javascripts/leaflet.share.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index aef60d1cd..4454f02bb 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -34,7 +34,7 @@ L.OSM.share = function (options) { $('

') .text(I18n.t('javascripts.share.title'))); - // Link / Embed + // Link var $linkSection = $('
') .attr('class', 'section share-link') @@ -105,6 +105,16 @@ L.OSM.share = function (options) { .attr('type', 'text') .on('click', select)); + // Embed + + var $embedSection = $('
') + .attr('class', 'section share-embed') + .appendTo($ui); + + var $form = $('
') + .attr('class', 'standard-form') + .appendTo($embedSection); + $('
') .attr('class', 'form-row') .appendTo($form) -- 2.43.2