From: Saman Bemel-Benrud Date: Tue, 30 Jul 2013 16:58:47 +0000 (-0400) Subject: divide embed section from share section. X-Git-Tag: live~4841^2~15 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c47b417f3ea4eda8fdfb190e109cb46136e2f345 divide embed section from share section. --- 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)