aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-07-05 14:09:44 +0100
committerDave Whiteland <dave@mysociety.org>2012-07-05 14:09:44 +0100
commit848797fda5402cf78a139a6aba82100aad97cf8b (patch)
tree9d72a79e3390882270c5b586043efc4767079e8c
parent6a854216db8d9e8e8e66b97527ce49496abb8b88 (diff)
switch click listener to the radio button (not the li) to make user action unambiguous
-rw-r--r--web/cobrands/fixmybarangay/message_manager_client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmybarangay/message_manager_client.js b/web/cobrands/fixmybarangay/message_manager_client.js
index 8546e92e4..a951078d5 100644
--- a/web/cobrands/fixmybarangay/message_manager_client.js
+++ b/web/cobrands/fixmybarangay/message_manager_client.js
@@ -133,11 +133,11 @@ var message_manager = new function() {
}
}
- // accept an element (e.g., message_list) and add the click event to the li's within it
+ // accept an element (e.g., message_list) and add the click event to the *radio button* within it
// A bit specific to expect li's perhaps.
// options are passed through to the lock
this.setup_click_listener = function(options) {
- $message_list_element.on('click', 'li', function(event){
+ $message_list_element.on('click', 'input[type=radio]', function(event) {
var $li = $(this).closest('li');
var id = $li.attr('id').replace(msg_prefix, '');
if ($li.hasClass('msg-is-locked')) {