Fossil

Check-in [37963253]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:json ajax: fixed POST/GET message sending determination (broken by a previous change this evening).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | json
Files: files | file ages | folders
SHA1: 37963253b9b1e5ea3a38e533ac6046a2f43ec82e
User & Date: stephan 2011-09-29 22:27:53
Context
2011-09-30
09:01
Merged in trunk [9bfa186be09f]. Fixed an inexplicable duplicate call to db_find_and_open_repository() which has since disappeared from the trunk. check-in: 8185bddf user: stephan tags: json
2011-09-29
22:27
json ajax: fixed POST/GET message sending determination (broken by a previous change this evening). check-in: 37963253 user: stephan tags: json
21:57
Removed the json warnings bitset crap. Still not sure i like the warnings mechanism at all. check-in: 9fe06e2f user: stephan tags: json
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ajax/js/fossil-ajaj.js.

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        req = {
            payload:payload,
            requestId:('function' === typeof this.generateRequestId) ? this.generateRequestId() : undefined,
            authToken:this.authToken || undefined,
            jsonp:('string' === typeof ajajOpt.jsonp) ? ajajOpt.jsonp : undefined
        };
    }
    
    if(command) ajajOpt.url = this.ajaj.derivedOption('url',ajajOpt) + command;
    if( 0 && this.authToken ) {
        if( req ) req.authToken = this.authToken;
        else { // GET request: extend ajajOpt.urlParam
            var urlArgs = ajajOpt.urlParam;
            if( 'string' === typeof urlArgs ) {
                ajajOpt.urlParam += '&authToken='+encodeUriComponent(this.authToken);







|







52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        req = {
            payload:payload,
            requestId:('function' === typeof this.generateRequestId) ? this.generateRequestId() : undefined,
            authToken:this.authToken || undefined,
            jsonp:('string' === typeof ajajOpt.jsonp) ? ajajOpt.jsonp : undefined
        };
    }
    ajajOpt.method = req ? 'POST' : 'GET';
    if(command) ajajOpt.url = this.ajaj.derivedOption('url',ajajOpt) + command;
    if( 0 && this.authToken ) {
        if( req ) req.authToken = this.authToken;
        else { // GET request: extend ajajOpt.urlParam
            var urlArgs = ajajOpt.urlParam;
            if( 'string' === typeof urlArgs ) {
                ajajOpt.urlParam += '&authToken='+encodeUriComponent(this.authToken);