Subversion Repositories eFlore/Applications.cel

Rev

Rev 1980 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1980 Rev 2004
Line 1361... Line 1361...
1361
    var json_response = {
1361
    var json_response = {
1362
      'success' : false,
1362
      'success' : false,
1363
      'message' : this.response
1363
      'message' : this.response
1364
    }
1364
    }
Line 1365... Line 1365...
1365
    
1365
    
1366
    if(this.response == 'OK' )
1366
    if(response.responseText == '') {
-
 
1367
	var data = {
-
 
1368
	      record : options.record,
1367
    {
1369
	      response : {
-
 
1370
		'success' : true,
1368
    	json_response.success = true ;
1371
		'message' : "OK"
1369
    }
1372
	      }
1370
    
-
 
1371
    var data = {
1373
	}
1372
      record: options.record,
1374
	this.fsa.postEvent('file-upload-success', data);
1373
      response: json_response
1375
	return;
Line 1374... Line 1376...
1374
    }
1376
    }
-
 
1377
    
-
 
1378
    if(response.responseText == "OK" )
-
 
1379
    {
-
 
1380
    	var data = {
-
 
1381
		      record : options.record,
-
 
1382
		      response : {
-
 
1383
	          'success' : true,
-
 
1384
		      'message' : this.response
1375
    
1385
    		}
1376
    if ('success' in json_response && json_response.success) {
1386
		}
1377
      this.fsa.postEvent('file-upload-success', data);
1387
      this.fsa.postEvent('file-upload-success', data);
1378
    }
1388
    }
1379
    else {
1389
    else {