--- a/Allura/allura/lib/widgets/discuss.py
+++ b/Allura/allura/lib/widgets/discuss.py
@@ -302,6 +302,14 @@
                         return false;
                     });
                 }
+                if($('.shortlink', post)){
+                    var popup = $('.shortlink_popup', post).dialog({modal: true, autoOpen: false}).show();
+                    $('.shortlink', post).click(function(ele){
+                        popup.dialog('open');
+                        $('input', popup).select();
+                        return false;
+                    });
+                }
             });
         })();
         ''')