projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4bb1bcc
)
Make "add note" cope with base layer changes
author
Tom Hughes
<tom@compton.nu>
Wed, 1 May 2013 08:26:05 +0000
(09:26 +0100)
committer
Tom Hughes
<tom@compton.nu>
Wed, 1 May 2013 08:26:05 +0000
(09:26 +0100)
app/assets/javascripts/index/notes.js.erb
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/index/notes.js.erb
b/app/assets/javascripts/index/notes.js.erb
index 4d796a3de8cc7b36ee5b5a6c0034d9dfa75bbb41..f212c85b7562b2c6f5d9f9297d7cd1f97502bf10 100644
(file)
--- a/
app/assets/javascripts/index/notes.js.erb
+++ b/
app/assets/javascripts/index/notes.js.erb
@@
-219,7
+219,7
@@
$(document).ready(function () {
});
}
});
}
- $("
#createnoteanchor").click(
function (e) {
+ $("
.leaflet-control-attribution").on("click", "#createnoteanchor",
function (e) {
e.preventDefault();
if ($(e.target).hasClass("disabled")) return;
e.preventDefault();
if ($(e.target).hasClass("disabled")) return;