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

Last change on this file since 127 was 119, checked in by peter, 9 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
RevLine 
[119]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.