Last change
on this file since 121 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
|
Line | |
---|
1 | function edit_bookmark(event) { |
---|
2 | window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); |
---|
3 | event.preventDefault(); |
---|
4 | return false; |
---|
5 | } |
---|
6 | |
---|
7 | var bookmark_links = document.querySelectorAll('.edit-bookmark'); |
---|
8 | for (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.