1. Robot Mirror
  2. bugs.python.org

Commits

ezio.melotti  committed 1a1c410

Don't try to add the button if the user is already in the nosy or it's not logged in. Also set the type of the input before the value -- this will hopefully fix the missing '+' on Opera.

  • Participants
  • Parent commits 782694c
  • Branches default

Comments (0)

Files changed (1)

File html/issue.item.js

View file
     // This might eventually be replaced by jquery
     var node_id = 'add_me_to_nosy';
     var add_me_span = document.getElementById(node_id);
+    if (add_me_span == null) {
+        // we are already in the nosy or we are not logged in
+        return;
+    }
     var add_me_button = document.createElement('input');
     var add_me_parent = add_me_span.parentNode;
+    add_me_button.type = 'button';
     add_me_button.value = '+';
-    add_me_button.type = 'button';
     add_me_button.title = 'Add me to the nosy list (remember to Submit Changes)';
     add_me_button.onclick = add_me_span.onclick;
     add_me_button.style.display = 'inline';