summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-30 16:21:03 +0100
committerSarven Capadisli <csarven@status.net>2009-10-30 16:21:03 +0100
commitcb8160dd8c7dc3ecfa0df3da1f6d5e9f3a6abcd0 (patch)
tree644018941c5c879efc4ae53e3664529b6764aa77 /js
parent4c94eda3c8ce2f52c9979245bea13e9e44485b0a (diff)
Added missing dataType line for ajaxForm
Diffstat (limited to 'js')
-rw-r--r--js/util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 28e4fac8c..3d33b18f9 100644
--- a/js/util.js
+++ b/js/util.js
@@ -71,6 +71,7 @@ var SN = { // StatusNet
PatternUsername: /^[0-9a-zA-Z\-_.]*$/,
HTTP20x30x: [200, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304, 305, 306, 307]
},
+
S: { // Selector
Disabled: 'disabled',
Warning: 'warning',
@@ -174,6 +175,7 @@ var SN = { // StatusNet
$('#'+SN.C.S.FormNotice).append('<input type="hidden" name="ajax" value="1"/>');
$('#'+SN.C.S.FormNotice).ajaxForm({
timeout: '60000',
+ dataType: 'xml',
beforeSend: function(xhr) {
if ($('#'+SN.C.S.NoticeDataText)[0].value.length === 0) {
$('#'+SN.C.S.FormNotice).addClass(SN.C.S.Warning);