var $ui = $('<div>')
.attr('class', 'share-ui');
- $('<header>')
+ $('<div>')
.attr('class', 'sidebar_heading')
.appendTo($ui)
.append(
$('<h4>')
.text(I18n.t('javascripts.share.title')));
- var $linkSection = $('<section>')
- .attr('class', 'share-link')
+ var $linkSection = $('<div>')
+ .attr('class', 'section share-link')
.appendTo($ui);
$('<h4>')
}
function update() {
- $shortLink.attr('href', options.getShortUrl(map));
- $longLink.attr('href', options.getUrl(map));
+ $shortLink.attr('href', map.getShortUrl());
+ $longLink.attr('href', map.getUrl());
}
function select() {