Subversion Repositories munaweb

Rev

Rev 170 | Rev 175 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 170 Rev 172
Line 2357... Line 2357...
2357
	url += urlfilter;
2357
	url += urlfilter;
2358
 
2358
 
2359
	var xhttp = new XMLHttpRequest();
2359
	var xhttp = new XMLHttpRequest();
2360
 
2360
 
2361
	xhttp.onreadystatechange = function() {
2361
	xhttp.onreadystatechange = function() {
2362
    	if (this.readyState == 4 && this.status == 200) {
2362
    	if (this.readyState == 4) {
2363
    	    // bugbug empty
2363
    	    if (this.status == 200) {
2364
			if (document.getElementById('completedItemsOnly').checked) {
2364
    			if (document.getElementById('completedItemsOnly').checked) {
2365
				_cb_findCompletedItems(JSON.parse(this.responseText));
2365
    				_cb_findCompletedItems(JSON.parse(this.responseText));
2366
			} else {
2366
    			} else {
2367
				_cb_findItemsAdvanced(JSON.parse(this.responseText));
2367
    				_cb_findItemsAdvanced(JSON.parse(this.responseText));
2368
			}
2368
    			}
-
 
2369
    		} else {
-
 
2370
                eBaySearch(paramPage);
-
 
2371
    		}
2369
        }
2372
        }
2370
    };
2373
    };
2371
 
2374
 
2372
	xhttp.open("GET", configProxyUrl, true);
2375
	xhttp.open("GET", configProxyUrl, true);
2373
	xhttp.setRequestHeader("X-Proxy-Url", encodeURI(url));
2376
	xhttp.setRequestHeader("X-Proxy-Url", encodeURI(url));
Line 2528... Line 2531...
2528
 
2531
 
2529
		var xhttp = new XMLHttpRequest();
2532
		var xhttp = new XMLHttpRequest();
2530
 
2533
 
2531
		xhttp.onreadystatechange = function() {
2534
		xhttp.onreadystatechange = function() {
2532
	    	if (this.readyState == 4 && this.status == 200) {
2535
	    	if (this.readyState == 4 && this.status == 200) {
-
 
2536
// bugbug
2533
				if (document.getElementById('completedItemsOnly').checked) {
2537
				if (document.getElementById('completedItemsOnly').checked) {
2534
					_cb_ConvertToCSVfindCompletedItems(JSON.parse(this.responseText));
2538
					_cb_ConvertToCSVfindCompletedItems(JSON.parse(this.responseText));
2535
				} else {
2539
				} else {
2536
					_cb_ConvertToCSVfindItemsAdvanced(JSON.parse(this.responseText));
2540
					_cb_ConvertToCSVfindItemsAdvanced(JSON.parse(this.responseText));
2537
				}
2541
				}
2538
	        }
2542
	        }
2539
	    };
2543
	    };
2540
 
2544
 
2541
		xhttp.open("GET", configProxyUrl, true);
2545
		xhttp.open("GET", configProxyUrl, true);
2542
		xhttp.setRequestHeader("X-Proxy-Url", encodeURI(url));
2546
		//xhttp.setRequestHeader("X-Proxy-Url", encodeURI(url));
-
 
2547
		xhttp.setRequestHeader("X-Proxy-Url", url);
2543
	   	xhttp.send();
2548
	   	xhttp.send();
2544
   	}
2549
   	}
2545
 
2550
 
2546
	function checkAsyncFlag() {
2551
	function checkAsyncFlag() {
2547
		if (asyncFlag === false) {
2552
		if (asyncFlag === false) {