projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93506fa
)
Fixed Nudge XHR
author
Sarven Capadisli
<csarven@status.net>
Fri, 30 Oct 2009 16:06:11 +0000
(16:06 +0000)
committer
Sarven Capadisli
<csarven@status.net>
Fri, 30 Oct 2009 16:06:11 +0000
(16:06 +0000)
js/util.js
patch
|
blob
|
history
diff --git
a/js/util.js
b/js/util.js
index f8e71d440d9fad2cd035ee5dd611049c5417cc51..75b9addb2cc8a2d8e84135161d143ea8c1af36a6 100644
(file)
--- a/
js/util.js
+++ b/
js/util.js
@@
-158,8
+158,8
@@
var SN = { // StatusNet
alert(errorThrown || textStatus);
},
success: function(data, textStatus) {
- form_new = document._importNode($('form', data)[0], true);
- if (form_new.length > 0) {
+ if (typeof($('form', data)[0]) != 'undefined') {
+ form_new = document._importNode($('form', data)[0], true);
$('#'+form_id).replaceWith(form_new);
$('#'+form_new.id).each(function() { SN.U.FormXHR($(this)); });
}