Skip to content

Commit

Permalink
adding the images...
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlong committed Nov 26, 2011
1 parent 0ff6594 commit b0f9408
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/src/main/webapp/WEB-INF/views/receipts.xhtml
Expand Up @@ -363,6 +363,7 @@ var previewNode = null;
var report = { purpose:'' , expenses : '' , id: 0 };

function loadExpenseReportExpensesLocally( expenseReportId, purpose, results ){
console.log('expenseReportId: '+ expenseReportId + '; purpose: '+ purpose + '; results: '+ results.length);
// save the report for efficient re-use later
report.id = expenseReportId;
report.expenses = results;
Expand Down Expand Up @@ -828,7 +829,6 @@ function setupDropzone() {
afterAll: function() {
console.log('finished uploading (afterAll())');
$('#' + currentFocusedExpenseElement.id + ' .progress').hide();

loadExpenseReportExpenses(currentExpenseReport)
}
});
Expand Down Expand Up @@ -874,14 +874,18 @@ $(function() {
dataType : 'json',
data : { title : html },
success : function(result) {
report.purpose = result;

refreshMenus(currentExpenseReport);
},
error : function(e) {
alert('error couldnt update purpose ' + JSON.stringify(e))
}
});

console.log( 'the results: '+ html );
report.purpose = html;
console.log( 'the purpose: '+ report.purpose);

});

return (html);
Expand Down Expand Up @@ -932,7 +936,6 @@ $(function() {

refreshMenus();
renderEligibleCharges();

resetExpenseReport();
});

Expand Down

0 comments on commit b0f9408

Please sign in to comment.