Permalink
Browse files

fix(bookmarks): bookmark pin copies title into form

Fixes #8995
  • Loading branch information...
mrclay committed Oct 4, 2015
1 parent 5676ff2 commit 50881370cac4fd10ca707aea2c83a25659eef03a
Showing with 4 additions and 5 deletions.
  1. +4 −5 mod/bookmarks/views/default/bookmarks/js.php
@@ -1,12 +1,11 @@
//<script>
elgg.provide('elgg.bookmarks');
elgg.bookmarks.init = function() {
// append the title to the url
var title = document.title;
var e = $('a.elgg-bookmark-page');
var link = e.attr('href') + '&title=' + encodeURIComponent(title);
e.attr('href', link);
$('.elgg-menu-item-bookmark > a').each(function () {
this.href += '&title=' + encodeURIComponent(document.title);
});
};
elgg.register_hook_handler('init', 'system', elgg.bookmarks.init);

0 comments on commit 5088137

Please sign in to comment.