source: bookmarks/trunk/lib/htdocs/assets/list.js @ 119

Last change on this file since 119 was 119, checked in by peter, 8 years ago

#15: Use Plack::Middleware::Static to serve static assets.

Moved the CSS and Javascript for creating the popup window into external static assets.

File size: 345 bytes
Line 
1function edit_bookmark(event) {
2    window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus();
3    event.preventDefault();
4    return false;
5}
6
7var bookmark_links = document.querySelectorAll('.edit-bookmark');
8for (var i = 0; i < bookmark_links.length; i++) {
9    bookmark_links.item(i).addEventListener('click', edit_bookmark);
10}
Note: See TracBrowser for help on using the repository browser.