Improved error handling.
[fa-stable.git] / js / inserts.js
index e486c6c4a1c53241114ecfbb6578b17a91430f85..a17519ef36a2298134f7b305c72a042dab62e0f0 100644 (file)
@@ -303,6 +303,16 @@ var inserts = {
                        return false;
                }
        },
+       'a.repopts_link':       function(l) {
+               l.onclick = function() {
+                   save_focus(this);
+                   var replinks = document.getElementsBySelector('a.repopts_link');
+                               for(var i in replinks)
+                                       replinks[i].style.fontWeight = replinks[i]==this ? 'bold' : 'normal';
+                       JsHttpRequest.request(this, null);
+                       return false;
+               }
+       },
        'a': function(e) { // traverse menu
                e.onkeydown = function(ev) { 
                        ev = ev||window.event;