Changed to bind instead of click

This commit is contained in:
Sarven Capadisli 2009-11-27 14:42:30 +01:00
parent c6b1ca3765
commit e96bba0542

View File

@ -365,7 +365,7 @@ var SN = { // StatusNet
NewDirectMessage: function() {
NDM = $('.entity_send-a-message a');
NDM.attr({'href':NDM.attr('href')+'&ajax=1'});
NDM.click(function() {
NDM.bind('click', function() {
var NDMF = $('.entity_send-a-message form');
if (NDMF.length === 0) {
$.get(NDM.attr('href'), null, function(data) {