~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/common/util.js

  • Committer: stevenbird
  • Date: 2008-02-01 03:51:56 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:368
First version of a DTD for XML problem files

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
            query_string += "&" + encodeURIComponent(arg_key) + "=" +
279
279
                encodeURIComponent(arg_val);
280
280
    }
281
 
    if (query_string != "")
 
281
    if (query_string == "")
 
282
        query_string = null;
 
283
    else
282
284
        /* Drop the first "&" */
283
285
        query_string = query_string.substr(1);
284
286
 
319
321
    else if (("args" in obj) && obj.args != null)
320
322
        query_string = make_query_string(obj.args);
321
323
 
322
 
    if (query_string != "" && query_string != null)
 
324
    if (query_string != null)
323
325
        url += "?" + query_string;
324
326
 
325
327
    return url;
569
571
            xhr.setRequestHeader("Content-Type", content_type);
570
572
            message = make_query_string(args);
571
573
        }
572
 
        xhr.setRequestHeader("Content-Length", message.length);
573
574
        xhr.send(message);
574
575
    }
575
576
    return xhr;