]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added missing dataType line for ajaxForm
authorSarven Capadisli <csarven@status.net>
Fri, 30 Oct 2009 15:21:03 +0000 (16:21 +0100)
committerSarven Capadisli <csarven@status.net>
Fri, 30 Oct 2009 15:21:03 +0000 (16:21 +0100)
js/util.js

index 28e4fac8cd4961fc79c7b55d5fdeb30ea98e9b51..3d33b18f9b66fa549ca46e5e65f3739ed82f13dc 100644 (file)
@@ -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);