js.php 328 B

12345678910111213
  1. elgg.provide('elgg.bookmarks');
  2. elgg.bookmarks.init = function() {
  3. // append the title to the url
  4. var title = document.title;
  5. var e = $('a.elgg-bookmark-page');
  6. var link = e.attr('href') + '&title=' + encodeURIComponent(title);
  7. e.attr('href', link);
  8. };
  9. elgg.register_hook_handler('init', 'system', elgg.bookmarks.init);