Changed to bind instead of click
This commit is contained in:
parent
c6b1ca3765
commit
e96bba0542
@ -365,7 +365,7 @@ var SN = { // StatusNet
|
|||||||
NewDirectMessage: function() {
|
NewDirectMessage: function() {
|
||||||
NDM = $('.entity_send-a-message a');
|
NDM = $('.entity_send-a-message a');
|
||||||
NDM.attr({'href':NDM.attr('href')+'&ajax=1'});
|
NDM.attr({'href':NDM.attr('href')+'&ajax=1'});
|
||||||
NDM.click(function() {
|
NDM.bind('click', function() {
|
||||||
var NDMF = $('.entity_send-a-message form');
|
var NDMF = $('.entity_send-a-message form');
|
||||||
if (NDMF.length === 0) {
|
if (NDMF.length === 0) {
|
||||||
$.get(NDM.attr('href'), null, function(data) {
|
$.get(NDM.attr('href'), null, function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user